PPL

buttons don't work on the story page

Bug #712750 reported by Christopher Adams
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PPL
Fix Released
Critical
Brad Phillips

Bug Description

The Close Edit Delete buttons no longer work at all on the Story page, such as:

http://pple.aikilab.com/story/XX

They work on the Profile page though. Is the correct JS still there?

Was this a regression when this bug was fixed? https://bugs.launchpad.net/bugs/708739

Changed in ppl:
importance: Undecided → Critical
assignee: nobody → Brad Phillips (brad-bradphillips)
milestone: none → 0.2
description: updated
Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

I don't think this is related to the other bug. I never changed any code on the story pages. I only borrowed code from the dashboard & inserted it into the profile page. I'll check this one out & see if the same procedure can fix this instance.

Revision history for this message
Brad Phillips (brad-bradphillips) wrote :

Ok, this bug was mainly happening because the stories on the story pages were wrapped in elements that weren't named the same as they are on the dashboard & profile pages. Since, they are inheriting the same widgets, the names need to be common for all the buttons to work in all scenarios.

I created a new widget (114) that is a duplicate of widget 53, only I altered the js & the rel/rev combinations to reflect the div ids of the story_container widget. Doing this has made all of the buttons functional again.

Since the buttons were designed with the stories displaying inside some other larger element (the dashboard or profile) there is some weirdness with how the buttons now function. The delete button will delete the story, but you have to navigate away from the page manually to see the change (if you try reloading the page, you get an error in the content of the page). Also, the edit button is sized as if it were in a column in the dashboard, so it appears to sit rather oddly.

These are cosmetic things that could be attached to a new bug, but, for now, this bug is squashed.

Changed in ppl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.