Refactoring for tm0010

From Littledamien Wiki
Jump to navigation Jump to search

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() 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.
  • 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]