Refactoring for tm0010: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
Line 11: Line 11:


===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]].
* 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]].



Revision as of 17:39, 2 November 2012

Overview

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

Listings

Edit pages

Albums/Galleries

Listings

  • Remove any reference to LITTLED.init() or setSortables.
  • Use $.cms('bindAlbumListingsHandlers') instead of LITTLED.CMS.bindAlbumListingsHandlers().
  • Add data-op="view" attribute to the <a> tag surrounding the thumbnail <img> tags to support image details lightbox dialogs.

Edit pages