Changeset 7309 for extensions
- Timestamp:
- Oct 20, 2010, 10:50:27 PM (14 years ago)
- Location:
- extensions/GMaps
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/admin/gmaps_category_maps.tpl
r7178 r7309 219 219 { 220 220 $('#iDialogDelete') 221 .html( '<br>{/literal}{"gmaps_pleaseConfirmAssoc"|@translate}{literal}')221 .html("<br>{/literal}{'gmaps_pleaseConfirmDeletingAssoc'|@translate}{literal}") 222 222 .dialog( 223 223 { -
extensions/GMaps/admin/gmaps_maps.tpl
r7177 r7309 56 56 ); 57 57 58 $('#iBDDisplayTypeIC, #iBDDisplayTypeIP, #iBDDisplayTypeMP').bind('change', 59 function () 60 { 61 switch($(this).val()) 62 { 63 case 'IC': 64 $('#iBDZoomLevelRow').hide(); 65 $('[name=fBDSizeMode]').attr('disabled', false); 66 break; 67 case 'IP': 68 $('#iBDZoomLevelRow').show(); 69 $('[name=fBDSizeMode]').attr('disabled', false); 70 break; 71 case 'MP': 72 $('#iBDZoomLevelRow').show(); 73 $('#iBDSizeModeF').attr('checked', true).change(); 74 $('[name=fBDSizeMode]').attr('disabled', true); 75 break; 76 } 77 } 78 ); 58 $('[name=fBDDisplayType]').bind('change', changeDisplayType); 79 59 80 60 $('#iBDSizeModeA, #iBDSizeModeF').bind('change', … … 129 109 130 110 loadList(); 111 } 112 113 /** 114 * 115 */ 116 var changeDisplayType = function () 117 { 118 switch($('[name=fBDDisplayType]:checked').val()) 119 { 120 case 'IC': 121 $('#iBDZoomLevelTxt').hide(); 122 $('#iBDZoomLevelMaxTxt').show(); 123 $('[name=fBDSizeMode]').attr('disabled', false); 124 break; 125 case 'IP': 126 $('#iBDZoomLevelTxt').show(); 127 $('#iBDZoomLevelMaxTxt').hide(); 128 $('[name=fBDSizeMode]').attr('disabled', false); 129 break; 130 case 'MP': 131 $('#iBDZoomLevelTxt').show(); 132 $('#iBDZoomLevelMaxTxt').hide(); 133 $('#iBDSizeModeF').attr('checked', true).change(); 134 $('[name=fBDSizeMode]').attr('disabled', true); 135 break; 136 } 131 137 } 132 138 … … 502 508 tmp={ 503 509 sizeMode:'A', 504 displayTYpe:'IC' 510 displayTYpe:'IC', 511 nbAssoc:0, 505 512 } 506 513 $('#iBDName').val(''); … … 511 518 $('#iBDMapWidthSlider').slider('option', 'value', 470); 512 519 $('#iBDMapHeightSlider').slider('option', 'value', 210); 520 $('#iBDMapZoomLevelMaxActivated').attr('checked', false); 513 521 $('#iBDMapZoomLevelSliderValue').val(4); 514 522 $('#iBDMapZoomLevelSlider').slider('option', 'value', 4); … … 541 549 $('#iBDMapWidthSlider').slider('option', 'value', tmp.width); 542 550 $('#iBDMapHeightSlider').slider('option', 'value', tmp.height); 551 $('#iBDMapZoomLevelMaxActivated').attr('checked', tmp.zoomLevelMaxActivated=='y'); 543 552 $('#iBDMapZoomLevelSliderValue').val(tmp.zoomLevel); 544 553 $('#iBDMapZoomLevelSlider').slider('option', 'value', tmp.zoomLevel); … … 558 567 559 568 $('#iBDDisplayType'+tmp.displayType+', #iBDSizeMode'+tmp.sizeMode).change(); 569 changeDisplayType(); 560 570 changeSize($('#iBDMapWidthSliderValue').val(), 'iBDMapWidthSlider'); 561 571 changeSize($('#iBDMapHeightSliderValue').val(), 'iBDMapHeightSlider'); 562 572 changeZoom($('#iBDMapZoomLevelSliderValue').val(), ''); 563 573 changeStreetViewControl($('#iBDMapStreetViewControl').val()); 574 575 if(tmp.nbAssoc>0) 576 { 577 $('[name=fBDDisplayType]').attr('disabled', true); 578 $('#iBDDisplayTypeRow').show(); 579 } 580 else 581 { 582 $('[name=fBDDisplayType]').attr('disabled', false); 583 $('#iBDDisplayTypeRow').hide(); 584 } 585 564 586 } 565 587 … … 628 650 width:$('#iBDMapWidthSliderValue').val(), 629 651 height:$('#iBDMapHeightSliderValue').val(), 652 zoomLevelMaxActivated:$('#iBDMapZoomLevelMaxActivated').attr('checked')?'y':'n', 630 653 zoomLevel:$('#iBDMapZoomLevelSliderValue').val(), 631 654 mapType:$('#iBDMapMapType').val(), … … 742 765 <td>{'gmaps_displayType'|@translate}</td> 743 766 <td> 744 <label><input type='radio' id='iBDDisplayTypeIC' name='fBDDisplayType' value='IC'> {'gmaps_displayTypeIC'|@translate}</label><br> 745 <label><input type='radio' id='iBDDisplayTypeIP' name='fBDDisplayType' value='IP'> {'gmaps_displayTypeIP'|@translate}</label><br> 746 <label><input type='radio' id='iBDDisplayTypeMP' name='fBDDisplayType' value='MP'> {'gmaps_displayTypeMP'|@translate}</label> 747 </td> 748 </tr> 767 <div style='display:inline-block;'> 768 <label><input type='radio' id='iBDDisplayTypeIC' name='fBDDisplayType' value='IC'> {'gmaps_displayTypeIC'|@translate}</label><br> 769 <label><input type='radio' id='iBDDisplayTypeIP' name='fBDDisplayType' value='IP'> {'gmaps_displayTypeIP'|@translate}</label><br> 770 <label><input type='radio' id='iBDDisplayTypeMP' name='fBDDisplayType' value='MP'> {'gmaps_displayTypeMP'|@translate}</label> 771 </div> 772 <div id='iBDDisplayTypeRow' class='helps' style='float:right;display:inline-block;margin-top:0px;'>{'gmaps_display_type_cannot_be_changed'|@translate}</div> 773 </td> 774 </tr> 775 749 776 750 777 </table> … … 847 874 <div id='iTabZoomLevel' style='display:none;'> 848 875 <table class='formtable'> 849 <tr id='iBDZoomLevelRow'> 850 <td>{'gmaps_zoomLevel'|@translate}</td> 876 877 <tr id='iBDZoomLevelMaxTxt'> 878 <td>{'gmaps_zoomLevel_max'|@translate}</td> 879 <td> 880 <label><input type='checkbox' id='iBDMapZoomLevelMaxActivated'> {'gmaps_apply_zoomLevel_max'|@translate}</label> 881 </td> 882 </tr> 883 884 <tr> 885 <td><span id='iBDZoomLevelTxt'>{'gmaps_zoomLevel'|@translate}</span></td> 851 886 <td> 852 887 <table class="formclass"> -
extensions/GMaps/language/en_UK/plugin.lang.php
r7177 r7309 152 152 153 153 154 // GMaps 1.1.0 155 $lang['gmaps_pleaseConfirmDeletingAssoc']="Please confirm deleting the association"; 156 $lang['gmaps_of_window_size']="of the browser window size"; // x% of the browser window size 157 $lang['gmaps_config']="Configuration"; 158 $lang['gmaps_popup_automatic_size']="Automatic size maps"; 159 $lang['gmaps_apply']="Apply"; 160 $lang['gmaps_config_saved']="Settings are saved"; 161 $lang['gmaps_zoomLevel_max']="Maximum zoom level"; 162 $lang['gmaps_apply_zoomLevel_max']="Apply a maximum zoom level"; 163 $lang['gmaps_display_type_cannot_be_changed']="This map is currently associated, the display type can't be modified"; 164 165 154 166 ?> -
extensions/GMaps/language/fr_FR/plugin.lang.php
r7177 r7309 163 163 $lang['gmaps_googleMapStreetViewControl']="Afficher le contrôle Street View"; 164 164 165 // GMaps 1.1.0 166 $lang['gmaps_pleaseConfirmDeletingAssoc']="Merci de confirmer la suppression de l'association"; 167 $lang['gmaps_of_window_size']="de la taille de la fenêtre"; 168 $lang['gmaps_config']="Configuration"; 169 $lang['gmaps_popup_automatic_size']="Cartes à dimensions automatiques"; 170 $lang['gmaps_apply']="Appliquer"; 171 $lang['gmaps_config_saved']="La configuration est enregistrée"; 172 $lang['gmaps_zoomLevel_max']="Niveau de zoom maximum"; 173 $lang['gmaps_apply_zoomLevel_max']="Appliquer un niveau de zoom maximum"; 174 $lang['gmaps_display_type_cannot_be_changed']="Cette carte faisant l'objet d'associations, la méthode d'affichage ne peut être modifiée"; 175 165 176 ?>
Note: See TracChangeset
for help on using the changeset viewer.