Last change
on this file since 21206 was
21206,
checked in by mistic100, 11 years ago
|
-define body_id and fix breadcrumb
-fix edit page with simple and gthumb+
|
File size:
1.0 KB
|
Line | |
---|
1 | {html_style} |
---|
2 | #thumbnails li {ldelim} position:relative !important;display:inline-block; } |
---|
3 | li .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; } |
---|
4 | li:hover .removeSet {ldelim} display:block !important; } |
---|
5 | {/html_style} |
---|
6 | |
---|
7 | {footer_script require='jquery'} |
---|
8 | jQuery(".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", |
---|
14 | url: "{$ROOT_URL}{$BATCH_DOWNLOAD_PATH}remove_image.php", |
---|
15 | data: {ldelim} "set_id": "{$SET_ID}", "toggle_id": toggle_id } |
---|
16 | }).done(function(msg) {ldelim} |
---|
17 | if (msg == "false") {ldelim} |
---|
18 | $trigger.parent("li").hide("fast", function() {ldelim} $trigger.remove() }); |
---|
19 | jQuery(".nbImagesSet").html(parseInt(jQuery(".nbImagesSet").html()) -1); |
---|
20 | } else {ldelim} |
---|
21 | $trigger.html('{'Un unknown error occured'|@translate}'); |
---|
22 | } |
---|
23 | }); |
---|
24 | |
---|
25 | return false; |
---|
26 | }); |
---|
27 | {/footer_script} |
---|
Note: See
TracBrowser
for help on using the repository browser.