Last change
on this file since 8991 was
5545,
checked in by grum, 15 years ago
|
Update the plugin for compatibility with Piwigo 2.1
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | |
---|
4 | function load_list(do_action, item, permut) |
---|
5 | { |
---|
6 | /* |
---|
7 | do_action |
---|
8 | 'list' : just load list |
---|
9 | 'permut' : permut items in list |
---|
10 | 'delete' : delete the item in list |
---|
11 | */ |
---|
12 | var doc = document.getElementById("iurls"); |
---|
13 | |
---|
14 | action_todo=''; |
---|
15 | if(do_action=='permut') |
---|
16 | { |
---|
17 | action_todo='links_permut&fItem='+item+'&fPermut='+permut; |
---|
18 | } |
---|
19 | else if(do_action=='delete') |
---|
20 | { |
---|
21 | if(confirm('{/literal}{'g002_confirm_delete_link'|@translate}{literal}')) |
---|
22 | { |
---|
23 | action_todo='links_delete&fItem='+item; |
---|
24 | } |
---|
25 | } |
---|
26 | else |
---|
27 | { |
---|
28 | action_todo='links_list'; |
---|
29 | } |
---|
30 | |
---|
31 | if(action_todo!='') |
---|
32 | { |
---|
33 | doc.innerHTML=$.ajax({ |
---|
34 | type: "POST", |
---|
35 | url: "{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}"+action_todo, |
---|
36 | async: false, |
---|
37 | }).responseText; |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
41 | </script> |
---|
42 | {/literal} |
---|
43 | |
---|
44 | |
---|
45 | <h3>{'g002_linkslist'|@translate} / <span style="font-weight:normal"><a href="{$datas.lnk_config}" title="{'g002_configlinks'|@translate}">{'g002_configlinks'|@translate}</a></span> |
---|
46 | </h3> |
---|
47 | |
---|
48 | [{$datas.nburl}]<br/> |
---|
49 | <a href="{$datas.lnk_create}" title="{'g002_addlink'|@translate}">{'g002_addlink'|@translate}</a> |
---|
50 | |
---|
51 | <br/> |
---|
52 | |
---|
53 | <div id="iurls"></div> |
---|
54 | |
---|
55 | |
---|
56 | <script type="text/javascript"> |
---|
57 | load_list('list', 0, 0); |
---|
58 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.