source: extensions/AMenuManager/admin/amm_personalisedlist.tpl @ 3681

Revision 3681, 1.0 KB checked in by grum, 11 years ago (diff)

Add plugin Advanced Menu Manager 2.1.0

  • Property svn:executable set to *
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      http_request=create_httpobject('get', '', '{/literal}{$datas.AMM_AJAX_URL_LIST}{literal}'+action_todo, false);
29      http_request.send(null);
30      doc.innerHTML=http_request.responseText;
31    }
32  }
33
34</script>
35{/literal}
36
37
38<h3>{'g002_personalisedlist'|@translate}</h3>
39
40[{$datas.nbsections}]<br/>
41<a href="{$datas.lnk_create}" title="{'g002_addsection'|@translate}">{'g002_addsection'|@translate}</a>
42
43<br/>
44
45<div id="isections"></div>
46
47
48<script type="text/javascript">
49  load_list('list', 0);
50</script>
Note: See TracBrowser for help on using the repository browser.