Changeset 7176 for extensions/GMaps/admin/gmaps_category_maps.tpl
- Timestamp:
- Oct 13, 2010, 5:25:09 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/admin/gmaps_category_maps.tpl
r7147 r7176 2 2 {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js"} 3 3 {known_script id="jquery.ui.dialog" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.dialog.packed.js"} 4 {known_script id="gpc.ui.iconSelector" src=$ROOT_URL|@cat:"plugins/GrumPluginClasses/js/ui.iconSelector.js"} 4 {known_script id="gpc.ui.iconSelector" src=$ROOT_URL|@cat:"plugins/GrumPluginClasses/js/ui.iconSelector.packed.js"} 5 {known_script id="gpc.ui.categorySelector" src=$ROOT_URL|@cat:"plugins/GrumPluginClasses/js/ui.categorySelector.packed.js"} 5 6 {known_script id="maps.google.com/api" src="http://maps.google.com/maps/api/js?sensor=false"} 6 7 … … 33 34 dialogClass: 'gcBgTabSheet gcBorder', 34 35 title: '{/literal}{"gmaps_manage_assoc"|@translate}{literal}', 36 open: function () { 37 $('#iBDAssocCatId').categorySelector('listMaxHeight', $('#iDialogEdit').height()-$('#iBDAssocCatId').position().top-$('#iBDAssocCatId').height()); 38 }, 39 35 40 buttons: 36 41 { … … 48 53 } 49 54 ); 55 56 $('#iBDAssocCatId').categorySelector( 57 { 58 listMaxWidth:600, 59 listMaxHeight:500, 60 displayStatus:true, 61 levelIndent:20, 62 userMode:'admin', 63 load: function (event) { $(this).categorySelector('expand', ':all+0'); } 64 } 65 ); 50 66 51 67 $('#iBDAssocIcon').iconSelector( … … 252 268 if(items=='') 253 269 { 254 $('#iBDAssocCatId'). val(0);270 $('#iBDAssocCatId').categorySelector('value', ':first'); 255 271 $('#iBDAssocMapId').val($('#iBDAssocMapId option:first').val()); 256 272 $('#iBDAssocApplySubCat').val('y'); … … 265 281 tmp=$.parseJSON(items); 266 282 267 $('#iBDAssocCatId'). val(tmp.categoryId);283 $('#iBDAssocCatId').categorySelector('value', tmp.categoryId).categorySelector('expand', tmp.categoryId+'+'); 268 284 $('#iBDAssocMapId').val(tmp.mapId); 269 285 $('#iBDAssocApplySubCat').val(tmp.applySubCat); … … 342 358 // build datas 343 359 datas = { 344 categoryId:$('#iBDAssocCatId'). val(),360 categoryId:$('#iBDAssocCatId').categorySelector('value'), 345 361 mapId:$('#iBDAssocMapId').val(), 346 362 applySubCat:$('#iBDAssocApplySubCat').val(), … … 464 480 <td>{'gmaps_category'|@translate}</td> 465 481 <td> 466 <select id='iBDAssocCatId'> 467 {foreach from=$datas.cats item=cat} 468 <option value='{$cat.id}' style='padding-left:{$cat.level*12}px;font-size:{$cat.level*-4+130}%;'>{$cat.name}</option> 469 {/foreach} 470 </select> 482 <div id='iBDAssocCatId'></div> 471 483 </td> 472 484 </tr> … … 499 511 <td>{'gmaps_map_icon'|@translate}</td> 500 512 <td> 501 <div id='iBDAssocIcon' class="{$themeconf.name}"></div>513 <div id='iBDAssocIcon'></div> 502 514 <p id='iBDKmlIconWarning' class='helps' style="width:520px;padding-right:20px;">{'gmaps_icon_info'|@translate}</p> 503 515 </td> … … 508 520 <td>{'gmaps_map_marker'|@translate}</td> 509 521 <td> 510 <div id='iBDAssocMarker' class="{$themeconf.name}"></div>522 <div id='iBDAssocMarker'></div> 511 523 </td> 512 524 </tr>
Note: See TracChangeset
for help on using the changeset viewer.