source: extensions/BatchDownloader/template/thumbnails_css_js.tpl @ 23291

Last change on this file since 23291 was 23291, checked in by mistic100, 7 years ago

fininalize download page
handle no-image files
correct link error when zips number changes

File size: 1.1 KB
RevLine 
[16626]1{html_style}
[21206]2#thumbnails li {ldelim} position:relative !important;display:inline-block; }
3li .removeSet {ldelim} width:100%;height:16px;display:none;position:absolute;top:0;background:rgba(0,0,0,0.8);padding:2px;border-radius:2px;font-size:10px;z-index:100 !important;color:#eee;white-space:nowrap; }
4li:hover .removeSet {ldelim} display:block !important; }
[16626]5{/html_style}
6
7{footer_script require='jquery'}
8jQuery(".removeSet").click(function() {ldelim}
9  var toggle_id = jQuery(this).data("id");
10  var $trigger = jQuery(this);
11 
12  jQuery.ajax({ldelim}
13    type: "POST",
[17177]14    url: "{$ROOT_URL}{$BATCH_DOWNLOAD_PATH}remove_image.php",
[16626]15    data: {ldelim} "set_id": "{$SET_ID}", "toggle_id": toggle_id }
16  }).done(function(msg) {ldelim}
17    if (msg == "false") {ldelim}
[21206]18      $trigger.parent("li").hide("fast", function() {ldelim} $trigger.remove() });
[16626]19      jQuery(".nbImagesSet").html(parseInt(jQuery(".nbImagesSet").html()) -1);
[23291]20     
21      if (typeof GThumb == "object") GThumb.build();
[16626]22    } else {ldelim}
23      $trigger.html('{'Un unknown error occured'|@translate}');
24    }
25  });
26 
27  return false;
28});
29{/footer_script}
Note: See TracBrowser for help on using the repository browser.