Changeset 7147 for extensions
- Timestamp:
- Oct 10, 2010, 4:30:03 PM (14 years ago)
- Location:
- extensions/GMaps
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/admin/gmaps_category_maps.tpl
r7141 r7147 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 5 {known_script id="maps.google.com/api" src="http://maps.google.com/maps/api/js?sensor=false"} 5 6 … … 28 29 autoOpen:false, 29 30 width:800, 30 height:4 65,31 height:480, 31 32 modal: true, 32 33 dialogClass: 'gcBgTabSheet gcBorder', … … 48 49 ); 49 50 51 $('#iBDAssocIcon').iconSelector( 52 { 53 images:[ 54 {/literal} 55 {foreach from=$datas.icons item=icon name=list} 56 "plugins/GMaps/img/{$icon.file}" 57 {if !$smarty.foreach.list.last},{/if} 58 {/foreach} 59 {literal} 60 ], 61 cellWidth:42, 62 cellHeight:28 63 } 64 ); 65 66 $('#iBDAssocMarker').iconSelector( 67 { 68 images:[ 69 {/literal} 70 {foreach from=$datas.markers item=marker name=list} 71 "plugins/GMaps/img/{$marker.file}" 72 {if !$smarty.foreach.list.last},{/if} 73 {/foreach} 74 {literal} 75 ], 76 cellWidth:32, 77 cellHeight:40, 78 numCols:13, 79 numRows:4 80 } 81 ); 82 50 83 $('#iBDAssocMapId').bind('change', changeMapDisplayType); 51 84 $('[name=fBDAssocKmlFile]').bind('change', changeKmlFileSource); 52 $('#iBDAssocIcon').bind('change', changeIcon);53 $('#iBDAssocMarker').bind('change', changeMarker);54 85 55 86 loadList(); 56 87 } 57 88 58 /**59 * called when the icon is changed60 */61 var changeIcon = function ()62 {63 $('#iBDAssocIcon').attr('style', $('#iBDAssocIcon option:selected').attr('style')).blur();64 }65 66 /**67 * called when the marker is changed68 */69 var changeMarker = function ()70 {71 $('#iBDAssocMarker').attr('style', $('#iBDAssocMarker option:selected').attr('style')).blur();72 }73 89 74 90 /** … … 242 258 $('#iBDAssocKmlFileId').val($('#iBDAssocKmlFileId option:first').val()); 243 259 $('#iBDAssocKmlFileUrl').val(''); 244 $('#iBDAssocIcon').val($('#iBDAssocIcon option:first').val()); 245 $('#iBDAssocMarker').val($('#iBDAssocMarker option:first').val()); 260 $('#iBDAssocIcon, #iBDAssocMarker').iconSelector('value', ':first'); 246 261 $('#iBDAssocTitle').val(''); 247 262 } … … 267 282 $('#iBDAssocKmlFileId').val(tmp.kmlFileId); 268 283 $('#iBDAssocKmlFileUrl').val(tmp.kmlFileUrl); 269 $('#iBDAssocIcon'). val(tmp.icon);270 $('#iBDAssocMarker'). val(tmp.marker);284 $('#iBDAssocIcon').iconSelector('value', 'plugins/GMaps/img/'+tmp.icon); 285 $('#iBDAssocMarker').iconSelector('value', 'plugins/GMaps/img/'+tmp.marker); 271 286 $('#iBDAssocTitle').val(tmp.title); 272 287 } … … 274 289 changeMapDisplayType(); 275 290 changeKmlFileSource(); 276 changeIcon();277 changeMarker();278 291 } 279 292 … … 334 347 kmlFileId:($('#iBDAssocKmlSelect').attr('checked'))?$('#iBDAssocKmlFileId').val():0, 335 348 kmlFileUrl:($('#iBDAssocKmlSelect').attr('checked'))?'':$('#iBDAssocKmlFileUrl').val(), 336 icon:$('#iBDAssocIcon'). val(),337 marker:$('#iBDAssocMarker'). val(),349 icon:$('#iBDAssocIcon').iconSelector('value'), 350 marker:$('#iBDAssocMarker').iconSelector('value'), 338 351 title:$('#iBDAssocTitle').val(), 339 352 } … … 486 499 <td>{'gmaps_map_icon'|@translate}</td> 487 500 <td> 488 <select id='iBDAssocIcon'> 489 {foreach from=$datas.icons item=icon} 490 <option style='background-image:url(plugins/GMaps/img/{$icon.file});' value='{$icon.file}'> </option> 491 {/foreach} 492 </select> 501 <div id='iBDAssocIcon' class="{$themeconf.name}"></div> 493 502 <p id='iBDKmlIconWarning' class='helps' style="width:520px;padding-right:20px;">{'gmaps_icon_info'|@translate}</p> 494 503 </td> … … 499 508 <td>{'gmaps_map_marker'|@translate}</td> 500 509 <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> 510 <div id='iBDAssocMarker' class="{$themeconf.name}"></div> 506 511 </td> 507 512 </tr> -
extensions/GMaps/gmaps.css
r7141 r7147 73 73 filter:alpha(opacity:55); 74 74 } 75 #iBDAssocIcon, #iBDAssocIcon option {76 height:34px;77 background-repeat:no-repeat;78 background-position:2px 2px;79 }80 #iBDAssocIcon {81 width:75px;82 padding-left:50px;83 }84 #iBDAssocIcon option {85 width:75px;86 }87 75 88 #iBDAssocMarker, #iBDAssocMarker option {89 background-position:2px 2px;90 background-repeat:no-repeat;91 height:40px;92 }93 #iBDAssocMarker {94 width:60px;95 padding-left:40px;96 }97 #iBDAssocMarker option {98 width:40px;99 }100 76 101 77 // fix IE8 compatibility bugs from GPC 3.2.0 (fixed in next release) -
extensions/GMaps/gmaps_ajax.php
r7139 r7147 664 664 $properties['kmlFileId']."', '". 665 665 $properties['kmlFileUrl']."', '". 666 $properties['icon']."', '".667 $properties['marker']."', '".666 basename($properties['icon'])."', '". 667 basename($properties['marker'])."', '". 668 668 mysql_escape_string($properties['title'])."');"; 669 669 $result=pwg_query($sql); … … 679 679 $properties['kmlFileUrl']."', kmlFileId='". 680 680 $properties['kmlFileId']."', icon='". 681 $properties['icon']."', marker='".682 $properties['marker']."', title='".681 basename($properties['icon'])."', marker='". 682 basename($properties['marker'])."', title='". 683 683 mysql_escape_string($properties['title'])."' 684 684 WHERE id='$id';"; -
extensions/GMaps/gmaps_version.inc.php
r7125 r7147 17 17 define('GMAPS_VERSION', '0.2.0'); 18 18 define('GMAPS_VERSION2', '00.02.00'); 19 define('GMAPS_GPC_NEEDED', '3. 2.0');19 define('GMAPS_GPC_NEEDED', '3.3.0'); 20 20 define('GMAPS_AMD_NEEDED', '0.5.2'); //advanced metadata plugin is needed 21 21 ?>
Note: See TracChangeset
for help on using the changeset viewer.