Opened 12 years ago
Closed 12 years ago
#28965 closed defect (bug) (fixed)
Media Grid JavaScript Clean-up
| Reported by: | ericlewis | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Media | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | javascript, docs |
Description
Media Grid has been developed in a flurry.
Let's sweep through and fix up where urgency previously trumped cleanliness.
Attachments (3)
Change History (17)
#2
@
12 years ago
- More documentation.
- Replace
media.view.MediaFrame.EditAttachments.editMetadataContentwithmedia.view.MediaFrame.EditAttachments.createViewForContentRegionInEditMetadataMode(self-documenting method naming), and clean up the implementation.
#7
@
12 years ago
I left out the iOS-style method name changes for now - I think better docs would alleviate the need for those.
#8
in reply to: ↑ 6
@
12 years ago
Replying to wonderboymusic:
In 29266:
Media Grid: general JS cleanup.
hi,
after this I get a blank media grid, no grid items at all, no js errors in the console. I have to add back "router: false" to the default states in media-grid.js but I'm totally new to backbone.js sorry I can't help more.
#10
@
12 years ago
- Resolution fixed
- Status closed → reopened
In attachment:28965.3.diff: per @koop, don't select body with jQuery.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In attachment:28965.diff:
use the
mode-gridselector to apply styles.editmode, which is cruft from a different implementation of bulk edit.createViewForContentRegionInBrowseMode, which while verbose, is more useful thancreateBrowsemedia.controller.EditAttachmentMetadatastate, remove unnecessary function overloading in lieu of setting region defaults tofalsein the options hash.tomedia.view.Frame`.media.view.Attachment.Details.media.view.Attachment.Details.rendermedia.view.MediaFrame.EditAttachments