Closed
Bug 499239
Opened 15 years ago
Closed 15 years ago
Provide a way to reset a slidebar feature - JEP
Categories
(Mozilla Labs :: Jetpack Prototype, defect, P4)
Mozilla Labs
Jetpack Prototype
Tracking
(Not tracked)
RESOLVED
FIXED
0.4
People
(Reporter: Mardak, Assigned: Mardak)
References
Details
The callback can have a function property to reset the feature's icon and content. Not sure if we want slide.reset() to reset both or have separate slide.resetIcon() and slide.resetContent() or slide.reset("icon") or .reset(["icon", "content"])
Comment 1•15 years ago
|
||
I'm not sure what you mean by reset here? For the icon, do you mean change the icon back to the default jetpack logo? And then for the slidebar, refresh the content?
Assignee | ||
Comment 2•15 years ago
|
||
Reset as in go back to what the feature originally said to use for the icon, url/html attribute. Features can change their icon dynamically as well as the content, so reset is more than just refresh as the iframe might point to a different location from what was originally provided as part of url:.
Comment 3•15 years ago
|
||
Aaaah, I see. Sounds good. In that case, slide.reset("icon") and .reset("icon", "content") seems reasonable. Or slide.icon.reset(), and slide.content.reset(). That might be even better.
Comment 4•15 years ago
|
||
Mardak, i think all your slidebar suggestions deserve an uber JEP
Assignee | ||
Comment 5•15 years ago
|
||
http://hg.mozilla.org/labs/jetpack/rev/5b64e5c7e79c Provide a way for a SlideBar feature's content and icon to reload the original html/url or icon.
Assignee: nobody → edilee
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: 0.5 → 0.4
You need to log in
before you can comment on or make changes to this bug.
Description
•