Changeset 5548 for extensions/lmt/admin/plugin_admin_manage.tpl
- Timestamp:
- Apr 1, 2010, 9:05:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/lmt/admin/plugin_admin_manage.tpl
r3396 r5548 10 10 function loadpage(pagenum) 11 11 { 12 http_request=create_httpobject('get', '', '{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}'+pagenum, false); 13 http_request.send(null); 12 tmp=$.ajax({ 13 type: "POST", 14 url: "{/literal}{$datas.LMT_AJAX_URL_LIST}{literal}"+pagenum, 15 async: false, 16 }).responseText; 14 17 15 tmp=http_request.responseText;16 17 18 $("#nbphotos").attr("innerHTML", tmp.substr(0,tmp.indexOf("#"))); 18 19 $("#list").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1)); … … 32 33 $("#img"+id).attr("className", "is_on"); 33 34 $(document).data("nbsel", $(document).data("nbsel")+1); 34 } 35 } 35 36 $("#btsubmit").get(0).disabled=($(document).data("nbsel")==0); 36 37 } … … 43 44 case '-': 44 45 break; 45 case 'all': 46 case 'all': 46 47 $(document).data("nbsel", {/literal}{$nbphotos}{literal}); 47 48 $("input").filter(".none").each( 48 function(i) 49 { 50 this.value="1"; 49 function(i) 50 { 51 this.value="1"; 51 52 $("#img"+this.id).attr("className", "is_on"); 52 } 53 ); 53 } 54 ); 54 55 break; 55 56 case 'none': 56 57 $(document).data("nbsel", 0); 57 58 $("input").filter(".none").each( 58 function(i) 59 { 60 this.value="0"; 59 function(i) 60 { 61 this.value="0"; 61 62 $("#img"+this.id).attr("className", "is_off"); 62 } 63 ); 63 } 64 ); 64 65 break; 65 66 case 'invert': 66 67 $("input").filter(".none").each( 67 function(i) 68 { 68 function(i) 69 { 69 70 if(this.value=="1") 70 71 { … … 79 80 $(document).data("nbsel", $(document).data("nbsel")+1); 80 81 } 81 } 82 ); 82 } 83 ); 83 84 break; 84 85 default: 85 86 $(document).data("nbsel", 0); 86 87 $("input").filter(".none").each( 87 function(i) 88 { 88 function(i) 89 { 89 90 if(this.alt==act) 90 91 { … … 93 94 $(document).data("nbsel", $(document).data("nbsel")+1); 94 95 } 95 } 96 ); 96 } 97 ); 97 98 break; 98 } 99 } 99 100 $("#selectlist").get(0).options[0].selected=true; 100 101 $("#btsubmit").get(0).disabled=($(document).data("nbsel")==0);
Note: See TracChangeset
for help on using the changeset viewer.