Changeset 27747


Ignore:
Timestamp:
Mar 13, 2014, 6:45:23 PM (7 years ago)
Author:
mistic100
Message:

delegate the main jQuery trigger to handle AJAX loaded items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/template/thumbnails_css_js.tpl

    r25678 r27747  
    121121
    122122// main button, open the menu
    123 jQuery('.addCollection').on('click', function(e) {
     123jQuery('#thumbnails').on('click', '.addCollection', function(e) {
    124124  var img_id = jQuery(this).data('id');
    125125  var col_ids = jQuery(this).data('cols');
     
    172172{else}
    173173{footer_script require='jquery'}
    174 jQuery('.addCollection').on('click', function(e) {
     174jQuery('#thumbnails').on('click', '.addCollection', function(e) {
    175175  var $trigger = jQuery(this);
    176176  var img_id = jQuery(this).data('id');
Note: See TracChangeset for help on using the changeset viewer.