Changeset 1191455
- Timestamp:
- 07/02/2015 08:01:15 PM (10 years ago)
- Location:
- easy2map/trunk
- Files:
-
- 7 edited
-
includes/Easy2Map.php (modified) (1 diff)
-
includes/Functions.php (modified) (7 diffs)
-
includes/MapPinImageSave.php (modified) (1 diff)
-
includes/SettingsEdit.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
scripts/functions.map.admin.js (modified) (40 diffs)
-
scripts/functions.mappin.admin.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy2map/trunk/includes/Easy2Map.php
r1178300 r1191455 7 7 const min_php_version = '5.0'; 8 8 const min_wp_version = '3.0'; 9 const e2m_version = '1.2. 2';9 const e2m_version = '1.2.5'; 10 10 11 11 // Used to uniquely identify this plugin's menu page in the WP manager -
easy2map/trunk/includes/Functions.php
r1178300 r1191455 112 112 $settings = new e2mMapItem("0", "0", "", 113 113 str_replace('index.php', '', easy2map_get_plugin_url('/index.php')) . "images/map_pins/pins/111.png" 114 , '<settings lattitude="9.51119363015591" longitude="15.191190643725605" zoom="2" clusterpins="1" mapType="ROADMAP" width="800" height="600" backgroundColor="B52932" draggable="1" scrollWheel="1" mapTypeControl="1" mapTypeControl_style="DROPDOWN_MENU" mapTypeControl_position="TOP_RIGHT" panControl="1" panControl_position="TOP_LEFT" rotateControl="1" rotateControl_position="TOP_LEFT" scaleControl="1" scaleControl_position="TOP_LEFT" streetViewControl="1" streetViewControl_position="TOP_LEFT" zoomControl="1" zoomControl_position="TOP_LEFT" zoomControl_style="LARGE" polyline_strokecolor="000000" polyline_opacity="1.0" polyline_strokeweight="1" showMarkerTitle="0" markerNameFontSize="1.2" setMaxWidthPopups="0" maxWidthPopups="250" showDirections="0" directionsLinkTitle="Get Directions" directionsLinkFontSize="1" />',115 '', '', '', '' );114 , '<settings lattitude="9.51119363015591" longitude="15.191190643725605" zoom="2" clusterpins="1" mapType="ROADMAP" width="800" height="600" backgroundColor="B52932" draggable="1" scrollWheel="1" mapTypeControl="1" mapTypeControl_style="DROPDOWN_MENU" mapTypeControl_position="TOP_RIGHT" panControl="1" panControl_position="TOP_LEFT" rotateControl="1" rotateControl_position="TOP_LEFT" scaleControl="1" scaleControl_position="TOP_LEFT" streetViewControl="1" streetViewControl_position="TOP_LEFT" zoomControl="1" zoomControl_position="TOP_LEFT" zoomControl_style="LARGE" polyline_strokecolor="000000" polyline_opacity="1.0" polyline_strokeweight="1" showMarkerTitle="0" markerNameFontSize="1.2" setMaxWidthPopups="0" maxWidthPopups="250" showDirections="0" directionsLinkTitle="Get Directions" directionsLinkFontSize="1" descriptionInListItems="1" />', 115 '', '', '', '', '', ''); 116 116 117 117 return $settings; … … 126 126 foreach ($mapSettings as $row) { 127 127 128 $settings = new e2mMapItem($row->ID, $row->TemplateID, $row->MapName, $row->DefaultPinImage, $row->Settings, $row->CSSValues, $row->CSSValuesList, $row->CSSValuesHeading, $row->PolyLines, $row->ThemeID, $row->Styles); 128 $settings = new e2mMapItem($row->ID, $row->TemplateID, $row->MapName, 129 $row->DefaultPinImage, $row->Settings, $row->CSSValues, 130 $row->CSSValuesList, $row->CSSValuesHeading, $row->PolyLines, 131 $row->ThemeID, $row->Styles); 129 132 130 133 return $settings; … … 161 164 162 165 //this is a map update 163 $wpdb->query( sprintf("166 $wpdb->query($wpdb->prepare(" 164 167 UPDATE $mapsTable 165 168 SET TemplateID = '%s', … … 176 179 $Items['mapTemplateName'], 177 180 $Items['mapName'], 178 urldecode($Items['mapSettingsXML']),179 urldecode($Items["mapCSSXML"]),180 urldecode($Items["listCSSXML"]),181 urldecode($Items["headingCSSXML"]),182 urldecode($Items["mapHTML"]),181 stripcslashes(urldecode($Items['mapSettingsXML'])), 182 stripcslashes(urldecode($Items["mapCSSXML"])), 183 stripcslashes(urldecode($Items["listCSSXML"])), 184 stripcslashes(urldecode($Items["headingCSSXML"])), 185 stripcslashes(urldecode($Items["mapHTML"])), 183 186 $Items['mapThemeName'], 184 187 $mapID)); … … 186 189 187 190 //this is a map insert 188 if (!$wpdb->query( sprintf("191 if (!$wpdb->query($wpdb->prepare(" 189 192 INSERT INTO $mapsTable( 190 193 TemplateID, … … 203 206 CURRENT_TIMESTAMP, '%s', '%s', '%s', '%s', '%s', 0, '%s');", 204 207 $Items['mapTemplateName'], 205 $Items['mapName'], str_replace('index.php', '', easy2map_get_plugin_url('/index.php')) . "images/map_pins/pins/111.png", 206 urldecode($Items['mapSettingsXML']), '', 207 urldecode($Items["mapCSSXML"]), 208 urldecode($Items["listCSSXML"]), 209 urldecode($Items["headingCSSXML"]), 210 urldecode($Items["mapHTML"]), 208 $Items['mapName'], str_replace('index.php', '', 209 easy2map_get_plugin_url('/index.php')) . "images/map_pins/pins/111.png", 210 stripcslashes(urldecode($Items['mapSettingsXML'])), '', 211 stripcslashes(urldecode($Items["mapCSSXML"])), 212 stripcslashes(urldecode($Items["listCSSXML"])), 213 stripcslashes(urldecode($Items["headingCSSXML"])), 214 stripcslashes(urldecode($Items["mapHTML"])), 211 215 $Items['mapThemeName']))) { 212 216 die("Error!"); … … 542 546 public $Styles; 543 547 544 public function __construct($ID, $TemplateID, $MapName, $DefaultPinImage, $Settings, $CSSValues, $CSSValuesList, $CSSValuesHeading, $PolyLines, $ThemeID, $Styles) { 548 public function __construct($ID, $TemplateID, $MapName, $DefaultPinImage, $Settings, $CSSValues, $CSSValuesList, 549 $CSSValuesHeading, $PolyLines, $ThemeID, $Styles) { 545 550 $this->ID = $ID; 546 551 $this->TemplateID = $TemplateID; -
easy2map/trunk/includes/MapPinImageSave.php
r795810 r1191455 2 2 include 'ImageFunctions.php'; 3 3 4 $imagesDirectory = WP_CONTENT_DIR . "/uploads/easy2map/images/map_pins/uploaded/" . $_GET["map_id"]. "/";4 $imagesDirectory = WP_CONTENT_DIR . "/uploads/easy2map/images/map_pins/uploaded/" . intval($_GET["map_id"]) . "/"; 5 5 echo $imagesDirectory; 6 6 $imagePlusLocation = ""; -
easy2map/trunk/includes/SettingsEdit.php
r1178300 r1191455 60 60 </h6> 61 61 <h6>Font size: 62 <select onclick="easy2map_map_functions.changeMarkerPopups()"63 id="markerNameFontSize" name="markerNameFontSize"64 style="font-size:12px;width:80px"';65 if ($premiumYN === false) {62 <select onclick="easy2map_map_functions.changeMarkerPopups()" 63 id="markerNameFontSize" name="markerNameFontSize" 64 style="font-size:12px;width:80px"'; 65 if ($premiumYN === false) { 66 66 echo ' disabled="disabled"'; 67 67 } … … 78 78 echo ' /> Set maximum width of popup windows</h6> 79 79 <h6>Max width: 80 <select onclick="easy2map_map_functions.changeMarkerPopups()"81 id="maxWidthPopups" name="maxWidthPopups"82 style="font-size:12px;width:80px"';83 if ($premiumYN === false) {80 <select onclick="easy2map_map_functions.changeMarkerPopups()" 81 id="maxWidthPopups" name="maxWidthPopups" 82 style="font-size:12px;width:80px"'; 83 if ($premiumYN === false) { 84 84 echo ' disabled="disabled"'; 85 85 } … … 110 110 <h6 style="margin-top:12px;">Font size: 111 111 112 <select onclick="easy2map_map_functions.changeMarkerPopups()"113 id="directionsLinkFontSize" name="directionsLinkFontSize"114 style="font-size:12px;width:60px"';115 if ($premiumYN === false) {112 <select onclick="easy2map_map_functions.changeMarkerPopups()" 113 id="directionsLinkFontSize" name="directionsLinkFontSize" 114 style="font-size:12px;width:60px"'; 115 if ($premiumYN === false) { 116 116 echo ' disabled="disabled"'; 117 117 } … … 124 124 </div> 125 125 </div>'; 126 127 128 //----------------- 129 echo '<h5 style="margin-top:20px;border-top:1px solid #EBEBEB;padding-top:0.5em;">Misc</h5>' 130 . '<h6><input type="checkbox" onclick="easy2map_map_functions.changeMarkerPopups()" 131 id="descriptionInListItems" name="descriptionInListItems"'; 132 if ($premiumYN === false) { 133 echo ' disabled="disabled"'; 134 } 135 echo ' /> Display <span style="font-size:1.2em">pin description</span> in pin-list ' 136 . '<p style="font-size:0.9em;text-decoration:italic;">(only applicable in templates containing list of pins).</p></h6>'; 137 126 138 ?> -
easy2map/trunk/readme.txt
r1178324 r1191455 5 5 6 6 Requires at least: 3.0.1 7 Tested up to: 4. 1.18 Stable tag: 1.2. 47 Tested up to: 4.2.2 8 Stable tag: 1.2.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 171 171 * Ability to import map markers from CSV file using addresses (previously only supported latitude and longitude) (Ultimate Version). 172 172 173 = 1.2.5 = 174 * WordPress version 4.2.2 compatability. 175 * SQL injection vulnerability fixed. 176 * Ability to show/hide pin description in list alongside map (Ultimate Version). 177 -
easy2map/trunk/scripts/functions.map.admin.js
r1178300 r1191455 200 200 var $styles = []; 201 201 for (var t = 0; t < $arrThemes.length; t++) { 202 202 203 203 if($mapTheme == parseInt($arrThemes[t].ID)){ 204 204 if ($arrThemes[t].Styles != null && $arrThemes[t].Styles.length > 0){ … … 278 278 }); 279 279 280 };280 }; 281 281 282 282 //retrieve all map themes from the database … … 313 313 }); 314 314 315 };316 317 return {315 }; 316 317 return { 318 318 //Change a single CSS value 319 319 changeElementValue: function(i, element, proVersion) { … … 360 360 361 361 case "border_style": 362 {363 jQuery('#tdheading_style').html("Border Style");364 jQuery('#div_edit_style').modal();365 jQuery('#txtDefaultValue_style').val(value).focus();366 break;367 }362 { 363 jQuery('#tdheading_style').html("Border Style"); 364 jQuery('#div_edit_style').modal(); 365 jQuery('#txtDefaultValue_style').val(value).focus(); 366 break; 367 } 368 368 369 369 case "font_family": 370 {371 jQuery('#tdheading_fontfamily').html("Font Family");372 jQuery('#div_edit_fontfamily').modal();373 jQuery('#txtDefaultValue_fontfamily').val(value).focus();374 break;375 }370 { 371 jQuery('#tdheading_fontfamily').html("Font Family"); 372 jQuery('#div_edit_fontfamily').modal(); 373 jQuery('#txtDefaultValue_fontfamily').val(value).focus(); 374 break; 375 } 376 376 377 377 case "border_width": 378 {379 380 jQuery('#tdheading_pixel').html("Border Width");378 { 379 380 jQuery('#tdheading_pixel').html("Border Width"); 381 381 //jQuery('#txtDefaultValue_pixel').find('option').remove(); 382 382 //for (var i = parseInt(0); i <= parseInt(50); i++) … … 388 388 } 389 389 390 case "font_size":390 case "font_size": 391 391 { 392 392 jQuery('#tdheading_pixel').html("Font Size"); … … 400 400 } 401 401 402 case "padding":402 case "padding": 403 403 { 404 404 jQuery('#tdheading_pixel').html("Padding"); … … 412 412 } 413 413 414 case "text_align":414 case "text_align": 415 415 { 416 416 jQuery('#tdheading_textalign').html("Text Align"); … … 420 420 } 421 421 422 case "width":422 case "width": 423 423 { 424 424 … … 446 446 } 447 447 448 case "height":448 case "height": 449 449 { 450 450 … … 459 459 } 460 460 461 case "max_height":461 case "max_height": 462 462 { 463 463 … … 472 472 } 473 473 474 case "margin_bottom":474 case "margin_bottom": 475 475 { 476 476 … … 485 485 } 486 486 487 case "margin_top":487 case "margin_top": 488 488 { 489 489 … … 498 498 } 499 499 500 case "margin_left":500 case "margin_left": 501 501 { 502 502 … … 511 511 } 512 512 513 case "margin_right":513 case "margin_right": 514 514 { 515 515 … … 524 524 } 525 525 526 case "border_radius":526 case "border_radius": 527 527 { 528 528 … … 537 537 } 538 538 539 case "border_color":539 case "border_color": 540 540 { 541 541 jQuery('#tdheading_color').html("Border Color"); … … 548 548 } 549 549 550 case "background_color":550 case "background_color": 551 551 { 552 552 jQuery('#tdheading_color').html("Background Color"); … … 559 559 } 560 560 561 case "color":561 case "color": 562 562 { 563 563 jQuery('#tdheading_color').html("Color"); … … 570 570 } 571 571 572 }573 574 },572 } 573 574 }, 575 575 //change a map's template 576 576 changeMapTemplate: function() { … … 774 774 jQuery('#directionsLinkTitle').val(!!settings.directionsLinkTitle ? settings.directionsLinkTitle : "Get Directions"); 775 775 jQuery('#directionsLinkFontSize').val(parseInt(settings.directionsLinkFontSize) > 0 ? settings.directionsLinkFontSize : 1); 776 if (typeof settings.descriptionInListItems == "undefined"){ 777 jQuery('#descriptionInListItems').prop("checked", true); 778 } else { 779 jQuery('#descriptionInListItems').prop("checked", parseInt(settings.descriptionInListItems) === 1 ? true : false); 780 } 776 781 777 782 jQuery('#mapEditPencil').show(); … … 785 790 }); 786 791 787 },792 }, 788 793 //save the CSS element that has been edited 789 794 saveItemValue: function() { … … 801 806 switch (attribute) { 802 807 case "border_style": 803 {804 alteredValue = jQuery('#txtDefaultValue_style').val();805 jQuery('#div_edit_style').hide();806 break;807 }808 { 809 alteredValue = jQuery('#txtDefaultValue_style').val(); 810 jQuery('#div_edit_style').hide(); 811 break; 812 } 808 813 case "font_family": 809 {810 alteredValue = jQuery('#txtDefaultValue_fontfamily').val();811 jQuery('#div_edit_fontfamily').hide();812 break;813 }814 { 815 alteredValue = jQuery('#txtDefaultValue_fontfamily').val(); 816 jQuery('#div_edit_fontfamily').hide(); 817 break; 818 } 814 819 815 820 case "font_size": 816 {817 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val();818 jQuery('#div_edit_em').hide();819 break;820 821 }821 { 822 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val(); 823 jQuery('#div_edit_em').hide(); 824 break; 825 826 } 822 827 823 828 case "padding": 824 {825 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val();826 jQuery('#div_edit_em').hide();827 break;828 }829 { 830 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val(); 831 jQuery('#div_edit_em').hide(); 832 break; 833 } 829 834 830 835 case "text_align": 831 {832 alteredValue = jQuery('#txtDefaultValue_textalign').val();833 jQuery('#div_edit_textalign').hide();834 break;835 }836 { 837 alteredValue = jQuery('#txtDefaultValue_textalign').val(); 838 jQuery('#div_edit_textalign').hide(); 839 break; 840 } 836 841 837 842 case "border_width": 838 {839 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val();840 jQuery('#div_edit_pixel').hide();841 break;842 }843 { 844 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val(); 845 jQuery('#div_edit_pixel').hide(); 846 break; 847 } 843 848 case "width": 844 {845 846 if (jQuery('#styleElement' + $styleElementIndex).attr('value').indexOf("%") !== -1) {849 { 850 851 if (jQuery('#styleElement' + $styleElementIndex).attr('value').indexOf("%") !== -1) { 847 852 //percentage-based width 848 853 alteredValue = jQuery('#txtDefaultValue_percentage').val() + "%"; … … 857 862 break; 858 863 } 859 case "height":864 case "height": 860 865 { 861 866 alteredValue = jQuery('#txtDefaultValue_pixel').val() + "px"; … … 863 868 break; 864 869 } 865 case "max_height":870 case "max_height": 866 871 { 867 872 alteredValue = jQuery('#txtDefaultValue_pixel').val() + "px"; … … 869 874 break; 870 875 } 871 case "margin_top":876 case "margin_top": 872 877 { 873 878 alteredValue = jQuery('#txtDefaultValue_margin').val(); … … 877 882 break; 878 883 } 879 case "margin_bottom":884 case "margin_bottom": 880 885 { 881 886 alteredValue = jQuery('#txtDefaultValue_margin').val(); … … 885 890 break; 886 891 } 887 case "margin_left":892 case "margin_left": 888 893 { 889 894 alteredValue = jQuery('#txtDefaultValue_margin').val(); … … 893 898 break; 894 899 } 895 case "margin_right":900 case "margin_right": 896 901 { 897 902 alteredValue = jQuery('#txtDefaultValue_margin').val(); … … 902 907 } 903 908 904 case "border_color":909 case "border_color": 905 910 { 906 911 alteredValue = '#' + jQuery('#txtDefaultValue_color').val(); … … 909 914 break; 910 915 } 911 case "background_color":916 case "background_color": 912 917 { 913 918 alteredValue = '#' + jQuery('#txtDefaultValue_color').val(); … … 916 921 break; 917 922 } 918 case "color":923 case "color": 919 924 { 920 925 alteredValue = '#' + jQuery('#txtDefaultValue_color').val(); … … 923 928 break; 924 929 } 925 case "z-index":930 case "z-index": 926 931 { 927 932 alteredValue = jQuery('#txtDefaultValue_pixel').val(); … … 929 934 break; 930 935 } 931 case "border_radius":936 case "border_radius": 932 937 { 933 938 alteredValue = jQuery('#txtDefaultValue_pixel').val() + jQuery('#txtDefaultValue_pixel_em').val(); … … 935 940 break; 936 941 } 937 }938 939 if ($styleSelectedElement === 1) {940 jQuery('#styleElement' + $styleElementIndex).attr('value', alteredValue);941 jQuery('#styleElement' + $styleElementIndex).html(normaliseCSSElement(attribute) + ' (' + alteredValue + ')');942 943 }944 else if ($styleSelectedElement === 2) {945 jQuery('#styleList' + $styleElementIndex).attr('value', alteredValue);946 jQuery('#styleList' + $styleElementIndex).html(normaliseCSSElement(attribute) + ' (' + alteredValue + ')');947 948 }949 else {950 jQuery('#styleHeading' + $styleElementIndex).attr('value', alteredValue);951 jQuery('#styleHeading' + $styleElementIndex).html(normaliseCSSElement(attribute) + ' (' + alteredValue + ')');952 953 }954 955 refreshExampleMap(true);956 },942 } 943 944 if ($styleSelectedElement === 1) { 945 jQuery('#styleElement' + $styleElementIndex).attr('value', alteredValue); 946 jQuery('#styleElement' + $styleElementIndex).html(normaliseCSSElement(attribute) + ' (' + alteredValue + ')'); 947 948 } 949 else if ($styleSelectedElement === 2) { 950 jQuery('#styleList' + $styleElementIndex).attr('value', alteredValue); 951 jQuery('#styleList' + $styleElementIndex).html(normaliseCSSElement(attribute) + ' (' + alteredValue + ')'); 952 953 } 954 else { 955 jQuery('#styleHeading' + $styleElementIndex).attr('value', alteredValue); 956 jQuery('#styleHeading' + $styleElementIndex).html(normaliseCSSElement(attribute) + ' (' + alteredValue + ')'); 957 958 } 959 960 refreshExampleMap(true); 961 }, 957 962 //save the map to the database 958 963 saveMap: function(redirect, showMapID) { … … 971 976 var $directionsLinkTitle = encodeURIComponent(jQuery('#directionsLinkTitle').val()); 972 977 var $directionsLinkFontSize = jQuery('#directionsLinkFontSize').val(); 978 979 var $descriptionInListItems = jQuery('#descriptionInListItems').prop("checked") ? "1" : "0"; 973 980 974 981 if ($map != null) { … … 994 1001 var $styles = []; 995 1002 for (var t = 0; t < $arrThemes.length; t++) { 996 1003 997 1004 if($mapTheme == parseInt($arrThemes[t].ID)){ 998 1005 if ($arrThemes[t].Styles != null && $arrThemes[t].Styles.length > 0){ … … 1040 1047 showDirections: $showDirections, 1041 1048 directionsLinkTitle: $directionsLinkTitle, 1042 directionsLinkFontSize: $directionsLinkFontSize 1049 directionsLinkFontSize: $directionsLinkFontSize, 1050 descriptionInListItems : $descriptionInListItems 1043 1051 }; 1044 1052 var options = { … … 1098 1106 } 1099 1107 }); 1100 },1108 }, 1101 1109 //save the map to the database 1102 1110 saveMapName: function() { … … 1143 1151 1144 1152 jQuery.when(easy2map_map_functions.saveMap(false, false)).then( 1145 function(data, textStatus, jqXHR) {1146 window.location = '?page=easy2map&action=mapimportcsv&map_id=' + $mapID;1147 });1153 function(data, textStatus, jqXHR) { 1154 window.location = '?page=easy2map&action=mapimportcsv&map_id=' + $mapID; 1155 }); 1148 1156 } else { 1149 1157 window.location = '?page=easy2map&action=mapimportcsv&map_id=' + $mapID; … … 1156 1164 1157 1165 jQuery.when(easy2map_map_functions.saveMap(false, false)).then( 1158 function(data, textStatus, jqXHR) {1159 window.location = '?page=easy2map&action=mapimportcsv2&map_id=' + $mapID;1160 });1166 function(data, textStatus, jqXHR) { 1167 window.location = '?page=easy2map&action=mapimportcsv2&map_id=' + $mapID; 1168 }); 1161 1169 } else { 1162 1170 window.location = '?page=easy2map&action=mapimportcsv2&map_id=' + $mapID; -
easy2map/trunk/scripts/functions.mappin.admin.js
r1178300 r1191455 492 492 jQuery('#ulEasy2MapPinList').find('li').remove(); 493 493 jQuery('#divAddressSearch').show(); 494 var descriptionInListItems = jQuery('#descriptionInListItems').prop("checked") ? true : false; 494 495 495 496 var noPinsFound = false; … … 628 629 tr2.appendChild(imageTd2); 629 630 tr2.appendChild(nameTd2); 630 tblPinList.appendChild(tr3); 631 tr3.appendChild(descriptionTd); 631 632 if (descriptionInListItems){ 633 tblPinList.appendChild(tr3); 634 tr3.appendChild(descriptionTd); 635 } 636 632 637 tblPinList.appendChild(tr4); 633 638 tr4.appendChild(emptyTd); … … 715 720 tr2.appendChild(nameTd2); 716 721 tblPinList.appendChild(tr3); 717 tr3.appendChild(descriptionTd); 718 tblPinList.appendChild(tr4); 722 723 if (descriptionInListItems){ 724 tr3.appendChild(descriptionTd); 725 tblPinList.appendChild(tr4); 726 } 727 719 728 tr4.appendChild(emptyTd); 720 729 … … 723 732 tr2.appendChild(imageTd2); 724 733 tr2.appendChild(nameTd2); 725 tr3.appendChild(descriptionTd); 734 if (descriptionInListItems){ 735 tr3.appendChild(descriptionTd); 736 } 726 737 tr4.appendChild(emptyTd); 727 738 } … … 783 794 tr2.appendChild(imageTd2); 784 795 tr2.appendChild(nameTd2); 785 tbl.appendChild(tr3); 786 tr3.appendChild(descriptionTd); 796 if (descriptionInListItems){ 797 tbl.appendChild(tr3); 798 tr3.appendChild(descriptionTd); 799 } 787 800 788 801 li.appendChild(tbl);
Note: See TracChangeset
for help on using the changeset viewer.