| @@ -1139,33 +1139,13 @@ | ||
| 1139 | 1139 | |
| 1140 | 1140 | }; |
| 1141 | 1141 | |
| 1142 | 1142 | uscesInformation = { |
| 1143 | + // `url` is set by every caller below; no default is kept here on purpose. | |
| 1144 | + // The former default pointed at a plain-HTTP welcart.com endpoint. | |
| 1143 | 1145 | settings: { |
| 1144 | - url: 'http://www.welcart.com/util/welcart_information.php', | |
| 1145 | 1146 | type: 'POST', |
| 1146 | 1147 | cache: false |
| 1147 | - }, | |
| 1148 | - | |
| 1149 | - getinfo : function() { | |
| 1150 | - var s = uscesInformation.settings; | |
| 1151 | - s.data = "v=" + encodeURIComponent(uscesL10n.version); | |
| 1152 | - s.data += "&wcid=" + encodeURIComponent(uscesL10n.wcid); | |
| 1153 | - s.data += "&wcurl=" + encodeURIComponent(uscesL10n.USCES_PLUGIN_URL); | |
| 1154 | - s.data += "&locale=" + encodeURIComponent(uscesL10n.locale); | |
| 1155 | - s.data += "&theme=" + encodeURIComponent(uscesL10n.theme); | |
| 1156 | - s.data += "&wcex="; | |
| 1157 | - var de = ''; | |
| 1158 | - for( var i = 0; i < uscesL10n.wcex.length; i++) { | |
| 1159 | - s.data += de + encodeURIComponent(uscesL10n.wcex[i]); | |
| 1160 | - de =','; | |
| 1161 | - } | |
| 1162 | - $.ajax( s ).done(function( data ){ | |
| 1163 | - $("#wc_information").html( data ); | |
| 1164 | - }).fail(function( msg ){ | |
| 1165 | - $("#wc_information").html( 'error : ' + msg ); | |
| 1166 | - }); | |
| 1167 | - return false; | |
| 1168 | 1148 | }, |
| 1169 | 1149 | |
| 1170 | 1150 | getinfo2 : function() { |
| 1171 | 1151 | var s = uscesInformation.settings; |