Changeset 5935 for extensions/AMetaData/admin/amd_metadata_select.tpl
- Timestamp:
- Apr 21, 2010, 9:27:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AMetaData/admin/amd_metadata_select.tpl
r5226 r5935 1 1 {literal} 2 <style> 3 .ui-widget-overlay { 4 background:#000000; 5 opacity:0.88; 6 filter:alpha(opacity:88); 7 } 8 </style> 9 10 2 11 <script type="text/javascript"> 3 12 … … 16 25 height:computedHeight, 17 26 modal: true, 18 draggable:false, 27 draggable:true, 28 dialogClass: 'gcBgTabSheet gcBorder', 19 29 title: '{/literal}{"g003_metadata_detail"|@translate}{literal}', 20 overlay:21 {22 backgroundColor: '#000',23 opacity: 0.524 },25 30 open: function(event, ui) 26 31 { … … 43 48 function loadTagList() 44 49 { 45 $("body").css("cursor", "wait");46 50 order=$('#iSelectOrderTagList').val(); 47 51 filter=$("#iSelectFilterTagList").val(); … … 51 55 displayTagListOrder(); 52 56 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 { 55 61 type: "POST", 56 62 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 88 96 } 89 97 … … 94 102 globalTagId=tag; 95 103 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'>"); 97 105 $("#iHeaderListImagesTagName").html("["+tag+"]"); 98 106 … … 117 125 function updateTagSelect(numId, mode) 118 126 { 119 $("body").css("cursor", "wait");120 127 121 128 if(mode=='switch') … … 134 141 }).responseText 135 142 ); 136 $("body").css("cursor", "default"); 143 137 144 } 138 145 … … 168 175 { 169 176 // by label 177 /* not fully implemented 170 178 $("#iHLTOrderTag").html(""); 171 179 $("#iHLTOrderLabel").html("↑"); 172 180 $("#iHLTOrderNum").html(""); 181 */ 173 182 } 174 183 } … … 224 233 <tr> 225 234 <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> 227 237 <th width="80px"><span id="iHLTOrderNum"></span><a onclick="sortTagList('num');">{'g003_NumOfImage'|@translate}</a></th> 228 238 <th width="40px">{'g003_Pct'|@translate}</th> … … 230 240 </tr> 231 241 </table> 232 <div id='iListTags' >242 <div id='iListTags' class="{$themeconf.name}"> 233 243 </div> 234 244 <div id="iListTagsNb"></div> … … 249 259 </table> 250 260 251 <div id='iListImages' >261 <div id='iListImages' class="{$themeconf.name}"> 252 262 <div style="width:100%;text-align:center;padding-top:20px;">{'g003_no_items_selected'|@translate}</div> 253 263 </div>
Note: See TracChangeset
for help on using the changeset viewer.