Last change
on this file since 20400 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.0 KB
|
Line | |
---|
1 | {literal} |
---|
2 | <script type="text/javascript"> |
---|
3 | |
---|
4 | function load_list(do_action, item) |
---|
5 | { |
---|
6 | /* |
---|
7 | do_action |
---|
8 | 'list' : just load list |
---|
9 | 'delete' : delete the item in list |
---|
10 | */ |
---|
11 | var doc = document.getElementById("isections"); |
---|
12 | |
---|
13 | action_todo=''; |
---|
14 | if(do_action=='delete') |
---|
15 | { |
---|
16 | if(confirm('{/literal}{'g002_confirm_delete_link'|@translate}{literal}')) |
---|
17 | { |
---|
18 | action_todo='personalised_delete&fItem='+item; |
---|
19 | } |
---|
20 | } |
---|
21 | else |
---|
22 | { |
---|
23 | action_todo='personalised_list'; |
---|
24 | } |
---|
25 | |
---|
26 | if(action_todo!='') |
---|
27 | { |
---|
28 | doc.innerHTML=$.ajax({ |
---|
29 | type: "POST", |
---|
30 | url: "{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}"+action_todo, |
---|
31 | async: false, |
---|
32 | }).responseText; |
---|
33 | } |
---|
34 | } |
---|
35 | |
---|
36 | </script> |
---|
37 | {/literal} |
---|
38 | |
---|
39 | |
---|
40 | <h3>{'g002_personalisedlist'|@translate}</h3> |
---|
41 | |
---|
42 | [{$datas.nbsections}]<br/> |
---|
43 | <a href="{$datas.lnk_create}" title="{'g002_addsection'|@translate}">{'g002_addsection'|@translate}</a> |
---|
44 | |
---|
45 | <br/> |
---|
46 | |
---|
47 | <div id="isections"></div> |
---|
48 | |
---|
49 | |
---|
50 | <script type="text/javascript"> |
---|
51 | load_list('list', 0); |
---|
52 | </script> |
---|
Note: See
TracBrowser
for help on using the repository browser.