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

Last change on this file since 26207 was 25932, checked in by mistic100, 11 years ago

update for Piwigo 2.6 + code cleaning + fix unable to cancel set during generation

File size: 1.2 KB
Line 
1{html_style}{literal}
2#thumbnails li { position:relative !important;display:inline-block; }
3li .removeSet { 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 { display:block !important; }
5{/literal}{/html_style}
6
7{footer_script require='jquery'}
8jQuery(".removeSet").click(function() {
9  var toggle_id = jQuery(this).data("id");
10  var $trigger = jQuery(this);
11
12  jQuery.ajax({
13    type: "POST",
14    url: "{$ROOT_URL}index.php",
15    data: {
16      action: "bd_remove_image",
17      set_id: "{$SET_ID}",
18      toggle_id: toggle_id
19    },
20    success: function(msg) {
21      if (msg == "ok") {
22        $trigger.parent("li").hide("fast", function() {
23          jQuery(this).remove();
24          if (typeof GThumb != "undefined") GThumb.build();
25        });
26
27        jQuery(".nbImagesSet").html(parseInt(jQuery(".nbImagesSet").html()) -1);
28      }
29      else {
30        $trigger.html('{'Un unknown error occured'|translate}');
31      }
32    },
33    error: function() {
34      $trigger.html('{'Un unknown error occured'|translate}');
35    }
36  });
37
38  return false;
39});
40{/footer_script}
Note: See TracBrowser for help on using the repository browser.