Changeset 35040
- Timestamp:
- 2021-04-06T00:19:44+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/js/eurovision.js
r35008 r35040 223 223 224 224 225 226 function ssv_load(query_text_id) 227 { 228 var sample_data_sgvizler_query = $('#'+query_text_id).text().trim(); 229 $('#sample-data-sgvizler-query').val(sample_data_sgvizler_query); 230 231 if ($('#'+query_text_id+"-chart").length>0) { 232 // Override existing val with custom value 233 $('#sample-data-sgvizler-chart').val($('#'+query_text_id+"-chart").text().trim()); 234 } 235 236 if ($('#'+query_text_id+"-chart-options").length>0) { 237 // Override existing val with custom value 238 $('#sample-data-sgvizler-chart-options').val($('#'+query_text_id+"-chart-options").text().trim()); 239 } 240 241 if ($('#'+query_text_id+"-div-style").length>0) { 242 // Override existing val with custom value 243 $('#sample-div-style').val($('#'+query_text_id+"-div-style").text().trim()); 244 } 245 else { 246 $('#sample-div-style').val($('#ssv-orig-div-style').text().trim()); 247 } 248 249 $('.exec-ssq').hide(); 250 $('#exec-'+query_text_id).show(); 251 } 252 253 254 225 255 function ssv_execute(query_text_id) 226 256 { 257 if (query_text_id) { 258 var sample_data_sgvizler_query = $('#'+query_text_id).text().trim(); 259 260 if ($('#'+query_text_id+"-startyear").length>0) { 261 var start_year = $('#'+query_text_id+"-startyear").val(); 262 sample_data_sgvizler_query = sample_data_sgvizler_query.replaceAll("**startyear**",start_year); 263 } 264 265 if ($('#'+query_text_id+"-endyear").length>0) { 266 var end_year = $('#'+query_text_id+"-endyear").val(); 267 sample_data_sgvizler_query = sample_data_sgvizler_query.replaceAll("**endyear**",end_year); 268 } 269 270 $('#sample-data-sgvizler-query').val(sample_data_sgvizler_query); 271 } 272 227 273 228 274 var sgvizler_div_raw_text = $('#sample-sgvizler-div').val(); … … 249 295 sgvizler2.containerDraw('sgvizler-div'); 250 296 } 251 252 253 function ssv_load(query_text_id)254 {255 $('#sample-data-sgvizler-query').val($('#'+query_text_id).text().trim());256 257 if ($('#'+query_text_id+"-chart").length>0) {258 // Override existing val with custom value259 $('#sample-data-sgvizler-chart').val($('#'+query_text_id+"-chart").text().trim());260 }261 262 if ($('#'+query_text_id+"-chart-options").length>0) {263 // Override existing val with custom value264 $('#sample-data-sgvizler-chart-options').val($('#'+query_text_id+"-chart-options").text().trim());265 }266 267 if ($('#'+query_text_id+"-div-style").length>0) {268 // Override existing val with custom value269 $('#sample-div-style').val($('#'+query_text_id+"-div-style").text().trim());270 }271 else {272 $('#sample-div-style').val($('#ssv-orig-div-style').text().trim());273 }274 275 $('.exec-ssq').hide();276 $('#exec-'+query_text_id).show();277 }278
Note:
See TracChangeset
for help on using the changeset viewer.