Commit Graph

5 Commits

Author SHA1 Message Date
shadlaws
b52a533a0f #2014 - Clean up gallery.ajax.js.
- prepend "data-" in front of non-standard attr to be more standards compliant.
- fix formatting.
2013-02-23 21:49:29 +01:00
Bharat Mediratta
518fdf735c No need to do the eval anymore. 2013-02-03 23:03:58 -05:00
Tim Almdal
407ce45bc5 Correct indentation
Signed-off-by: Tim Almdal <tnalmdal@shaw.ca>
2009-08-19 21:16:03 +08:00
Chad Kieffer
a10c309c36 Replace tabs w/ spaces. 2009-08-11 00:28:38 -06:00
Bharat Mediratta
cbba45fffc Create the concept of an "ajax link" and use it for thumbnail rotation
and album covers in the context menu.

Notes:
- This requires context_menu() to have a CSS selector that refers to the
  <img> that we're operating on, otherwise we don't know how to find the
  thumbnail, etc.
- Create Menu_Element_Ajax_Link which has an ajax_handler attribute
  that contains a snippet of JS that we're going to run when the ajax
  call returns.
- Add $.gallery_replace_image in gallery.common.js
- Add lib/gallery.ajax.js which can be used to ajaxify any link, and have
  ui.init.js in the themes call that on all .gAjaxLink elements.
2009-08-10 23:07:50 -07:00