Ignore:
Timestamp:
Apr 21, 2010, 9:27:51 PM (14 years ago)
Author:
grum
Message:

Update plugin for Piwigo 2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/admin/amd_metadata_select.tpl

    r5226 r5935  
    11{literal}
     2<style>
     3 .ui-widget-overlay {
     4    background:#000000;
     5    opacity:0.88;
     6    filter:alpha(opacity:88);
     7 }
     8</style>
     9
     10
    211<script type="text/javascript">
    312
     
    1625        height:computedHeight,
    1726        modal: true,
    18         draggable:false,
     27        draggable:true,
     28        dialogClass: 'gcBgTabSheet gcBorder',
    1929        title: '{/literal}{"g003_metadata_detail"|@translate}{literal}',
    20         overlay:
    21         {
    22           backgroundColor: '#000',
    23           opacity: 0.5
    24         },
    2530        open: function(event, ui)
    2631        {
     
    4348  function loadTagList()
    4449  {
    45     $("body").css("cursor", "wait");
    4650    order=$('#iSelectOrderTagList').val();
    4751    filter=$("#iSelectFilterTagList").val();
     
    5155    displayTagListOrder();
    5256
    53     $("#iListTags").html(
    54       $.ajax({
     57    $("#iListTags").html("<br>{/literal}{'g003_loading'|@translate}{literal}<br><img src='./plugins/GrumPluginClasses/icons/processing.gif'>");
     58
     59    $.ajax(
     60      {
    5561        type: "POST",
    5662        url: "{/literal}{$datas.urlRequest}{literal}",
    57         async: false,
    58         data: { ajaxfct:"showStatsGetListTags", orderType:order, filterType:filter, excludeUnusedTag:unusedTag, selectedTagOnly:selectedOnly }
    59        }).responseText
    60     );
    61     $("#iListTagsNb").html(
    62       "{/literal}{'g003_number_of_filtered_metadata'|@translate}{literal} "+$("#iListTags table tr").length
    63     );
    64 
    65     //onclick="updateTagSelect('iNumId{$data.numId}', '')"
    66     $("input.cbiListTags")
    67       .bind('click',
    68         function(event)
    69         {
    70           event.stopPropagation();
    71           updateTagSelect($(this).get(0).id, '');
    72         }
    73       );
    74 
    75     $("a.cbiListTags")
    76       .bind('click',
    77         function(event)
    78         {
    79           event.stopPropagation();
    80           loadTagDetail($(this).get(0).id.substr(7));
    81         }
    82       );
    83 
    84 
    85 
    86 
    87     $("body").css("cursor", "default");
     63        async: true,
     64        data: { ajaxfct:"showStatsGetListTags", orderType:order, filterType:filter, excludeUnusedTag:unusedTag, selectedTagOnly:selectedOnly },
     65        success:
     66          function(msg)
     67          {
     68            $("#iListTags").html(msg);
     69
     70            $("#iListTagsNb").html(
     71              "{/literal}{'g003_number_of_filtered_metadata'|@translate}{literal} "+$("#iListTags table tr").length
     72            );
     73
     74            //onclick="updateTagSelect('iNumId{$data.numId}', '')"
     75            $("input.cbiListTags")
     76              .bind('click',
     77                function(event)
     78                {
     79                  event.stopPropagation();
     80                  updateTagSelect($(this).get(0).id, '');
     81                }
     82              );
     83
     84            $("a.cbiListTags")
     85              .bind('click',
     86                function(event)
     87                {
     88                  event.stopPropagation();
     89                  loadTagDetail($(this).get(0).id.substr(7));
     90                }
     91              );
     92          }
     93      }
     94    );
     95
    8896  }
    8997
     
    94102    globalTagId=tag;
    95103    order=$('#iSelectOrderImageList').val();
    96     $("#iListImages").html("<br>{/literal}{'g003_loading'|@translate}{literal}");
     104    $("#iListImages").html("<br>{/literal}{'g003_loading'|@translate}{literal}<br><img src='./plugins/GrumPluginClasses/icons/processing.gif'>");
    97105    $("#iHeaderListImagesTagName").html("["+tag+"]");
    98106
     
    117125  function updateTagSelect(numId, mode)
    118126  {
    119     $("body").css("cursor", "wait");
    120127
    121128    if(mode=='switch')
     
    134141       }).responseText
    135142    );
    136     $("body").css("cursor", "default");
     143
    137144  }
    138145
     
    168175    {
    169176      // by label
     177      /* not fully implemented
    170178      $("#iHLTOrderTag").html("");
    171179      $("#iHLTOrderLabel").html("&#8593;");
    172180      $("#iHLTOrderNum").html("");
     181      */
    173182    }
    174183  }
     
    224233  <tr>
    225234    <th style="width:35%;min-width:340px;"><span id="iHLTOrderTag"></span><a onclick="sortTagList('tag');">{'g003_TagId'|@translate}</a></th>
    226     <th><span id="iHLTOrderLabel"></span><a onclick="sortTagList('label');">{'g003_TagLabel'|@translate}</a></th>
     235    {* <th><span id="iHLTOrderLabel"></span><a onclick="sortTagList('label');">{'g003_TagLabel'|@translate}</a></th> *}
     236    <th>{'g003_TagLabel'|@translate}</th>
    227237    <th width="80px"><span id="iHLTOrderNum"></span><a onclick="sortTagList('num');">{'g003_NumOfImage'|@translate}</a></th>
    228238    <th width="40px">{'g003_Pct'|@translate}</th>
     
    230240  </tr>
    231241</table>
    232 <div id='iListTags'>
     242<div id='iListTags' class="{$themeconf.name}">
    233243</div>
    234244<div id="iListTagsNb"></div>
     
    249259  </table>
    250260
    251   <div id='iListImages'>
     261  <div id='iListImages' class="{$themeconf.name}">
    252262    <div style="width:100%;text-align:center;padding-top:20px;">{'g003_no_items_selected'|@translate}</div>
    253263  </div>
Note: See TracChangeset for help on using the changeset viewer.