Ignore:
Timestamp:
Apr 1, 2010, 9:05:29 PM (14 years ago)
Author:
grum
Message:

Update the plugin for compatibility with Piwigo 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/lmt/admin/plugin_admin_manage.tpl

    r3396 r5548  
    1010  function loadpage(pagenum)
    1111  {
    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;
    1417
    15     tmp=http_request.responseText;
    16    
    1718    $("#nbphotos").attr("innerHTML", tmp.substr(0,tmp.indexOf("#")));
    1819    $("#list").attr("innerHTML", tmp.substr(tmp.indexOf("#")+1));
     
    3233      $("#img"+id).attr("className", "is_on");
    3334      $(document).data("nbsel", $(document).data("nbsel")+1);
    34     }   
     35    }
    3536    $("#btsubmit").get(0).disabled=($(document).data("nbsel")==0);
    3637  }
     
    4344      case '-':
    4445        break;
    45       case 'all': 
     46      case 'all':
    4647        $(document).data("nbsel", {/literal}{$nbphotos}{literal});
    4748        $("input").filter(".none").each(
    48           function(i) 
    49           { 
    50             this.value="1"; 
     49          function(i)
     50          {
     51            this.value="1";
    5152            $("#img"+this.id).attr("className", "is_on");
    52           } 
    53         );       
     53          }
     54        );
    5455        break;
    5556      case 'none':
    5657        $(document).data("nbsel", 0);
    5758        $("input").filter(".none").each(
    58           function(i) 
    59           { 
    60             this.value="0"; 
     59          function(i)
     60          {
     61            this.value="0";
    6162            $("#img"+this.id).attr("className", "is_off");
    62           } 
    63         );       
     63          }
     64        );
    6465        break;
    6566      case 'invert':
    6667        $("input").filter(".none").each(
    67           function(i) 
    68           { 
     68          function(i)
     69          {
    6970            if(this.value=="1")
    7071            {
     
    7980              $(document).data("nbsel", $(document).data("nbsel")+1);
    8081            }
    81           } 
    82         );       
     82          }
     83        );
    8384        break;
    8485      default:
    8586        $(document).data("nbsel", 0);
    8687        $("input").filter(".none").each(
    87           function(i) 
    88           { 
     88          function(i)
     89          {
    8990            if(this.alt==act)
    9091            {
     
    9394              $(document).data("nbsel", $(document).data("nbsel")+1);
    9495            }
    95           } 
    96         );       
     96          }
     97        );
    9798        break;
    98     } 
     99    }
    99100    $("#selectlist").get(0).options[0].selected=true;
    100101    $("#btsubmit").get(0).disabled=($(document).data("nbsel")==0);
Note: See TracChangeset for help on using the changeset viewer.