Refactoring for tm0010: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==Overview== Git branch <code>tm0010</code> on <code>/littldamien/common_lib</code> converted most of the library routines into jQuery plugin routines. This page contains docu...") |
|||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
===Listings=== | ===Listings=== | ||
* In the dialog that opens when deleting a record, make sure there's a hidden input with <code>name="ssid"</code> storing the value of the content type to delete. | |||
===Edit pages=== | ===Edit pages=== | ||
| Line 11: | Line 12: | ||
===Listings=== | ===Listings=== | ||
* Remove any reference to <code>LITTLED.init()</code> or <code>setSortables</code>. | |||
* Use <code>$.cms('bindAlbumListingsHandlers')</code> instead of <code>LITTLED.CMS.bindAlbumListingsHandlers()</code>. | |||
* Add <code>data-op="view"</code> attribute to the <code><nowiki><a></nowiki></code> tag surrounding the thumbnail <code><nowiki><img></nowiki></code> tags to support [[Gallery_Listings#Image_lightbox|image details lightbox dialogs]]. | |||
* In the dialog that opens when deleting a record, make sure there's a hidden input with <code>name="ssid"</code> storing the value of the content type to delete. | |||
===Edit pages=== | ===Edit pages=== | ||
[[Category:Albums CMS]] [[Category:CMS Documentation]] | [[Category:Albums CMS]] [[Category:CMS Documentation]] | ||
Latest revision as of 17:40, 2 November 2012
Overview[edit]
Git branch tm0010 on /littldamien/common_lib converted most of the library routines into jQuery plugin routines. This page contains documentation on how to refactor existing sections to conform to the updates.
Non-gallery sections[edit]
Listings[edit]
- In the dialog that opens when deleting a record, make sure there's a hidden input with
name="ssid"storing the value of the content type to delete.
Edit pages[edit]
Albums/Galleries[edit]
Listings[edit]
- Remove any reference to
LITTLED.init()orsetSortables. - Use
$.cms('bindAlbumListingsHandlers')instead ofLITTLED.CMS.bindAlbumListingsHandlers(). - Add
data-op="view"attribute to the<a>tag surrounding the thumbnail<img>tags to support image details lightbox dialogs. - In the dialog that opens when deleting a record, make sure there's a hidden input with
name="ssid"storing the value of the content type to delete.