Changeset 7139 for extensions/GMaps/admin
- Timestamp:
- Oct 9, 2010, 9:55:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/admin/gmaps_category_maps.tpl
r7132 r7139 28 28 autoOpen:false, 29 29 width:800, 30 height:4 50,30 height:465, 31 31 modal: true, 32 32 dialogClass: 'gcBgTabSheet gcBorder', … … 50 50 $('#iBDAssocMapId').bind('change', changeMapDisplayType); 51 51 $('[name=fBDAssocKmlFile]').bind('change', changeKmlFileSource); 52 $('#iBDAssocIcon').bind('change', changeIcon); 53 $('#iBDAssocMarker').bind('change', changeMarker); 52 54 53 55 loadList(); 56 } 57 58 /** 59 * called when the icon is changed 60 */ 61 var changeIcon = function () 62 { 63 $('#iBDAssocIcon').attr('style', $('#iBDAssocIcon option:selected').attr('style')).blur(); 64 } 65 66 /** 67 * called when the marker is changed 68 */ 69 var changeMarker = function () 70 { 71 $('#iBDAssocMarker').attr('style', $('#iBDAssocMarker option:selected').attr('style')).blur(); 54 72 } 55 73 … … 225 243 $('#iBDAssocKmlFileUrl').val(''); 226 244 $('#iBDAssocIcon').val($('#iBDAssocIcon option:first').val()); 245 $('#iBDAssocMarker').val($('#iBDAssocMarker option:first').val()); 227 246 $('#iBDAssocTitle').val(''); 228 247 } … … 249 268 $('#iBDAssocKmlFileUrl').val(tmp.kmlFileUrl); 250 269 $('#iBDAssocIcon').val(tmp.icon); 270 $('#iBDAssocMarker').val(tmp.marker); 251 271 $('#iBDAssocTitle').val(tmp.title); 252 272 } … … 254 274 changeMapDisplayType(); 255 275 changeKmlFileSource(); 276 changeIcon(); 277 changeMarker(); 256 278 } 257 279 … … 313 335 kmlFileUrl:($('#iBDAssocKmlSelect').attr('checked'))?'':$('#iBDAssocKmlFileUrl').val(), 314 336 icon:$('#iBDAssocIcon').val(), 337 marker:$('#iBDAssocMarker').val(), 315 338 title:$('#iBDAssocTitle').val(), 316 339 } … … 430 453 <select id='iBDAssocCatId'> 431 454 {foreach from=$datas.cats item=cat} 432 <option value='{$cat.id}' >{$cat.name}</option>455 <option value='{$cat.id}' style='padding-left:{$cat.level*12}px;font-size:{$cat.level*-4+130}%;'>{$cat.name}</option> 433 456 {/foreach} 434 457 </select> … … 465 488 <select id='iBDAssocIcon'> 466 489 {foreach from=$datas.icons item=icon} 467 <option class='{$icon.type}' value='{$icon.file}'>{$icon.file}</option>490 <option style='background-image:url(plugins/GMaps/img/{$icon.file});' value='{$icon.file}'></option> 468 491 {/foreach} 469 492 </select> 470 </td> 471 </tr> 493 <p id='iBDKmlIconWarning' class='helps' style="width:520px;padding-right:20px;">{'gmaps_icon_info'|@translate}</p> 494 </td> 495 </tr> 496 497 498 <tr> 499 <td>{'gmaps_map_marker'|@translate}</td> 500 <td> 501 <select id='iBDAssocMarker'> 502 {foreach from=$datas.markers item=marker} 503 <option style='background-image:url(plugins/GMaps/img/{$marker.file});' value='{$marker.file}'></option> 504 {/foreach} 505 </select> 506 </td> 507 </tr> 508 472 509 473 510 <tr>
Note: See TracChangeset
for help on using the changeset viewer.