- Timestamp:
- 2017-03-31T20:51:11+13:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js
r31558 r31559 467 467 // check for any caller overrides 468 468 if(opts != null) { 469 //if(opts["use_payload_in_data_not_url_form"] != null) {470 // _use_payload_in_data_not_url_form = opts["use_payload_in_data_not_url_form"];471 //}472 469 if(opts["requestMethod"] != null) { 473 470 method = opts["requestMethod"]; … … 502 499 if(_use_payload_in_data_not_url_form) { // using data payload to do AJAX (regardless of request method) 503 500 504 //method = "POST";505 506 501 // for get-meta operations, go directly through metadata-server.pl 507 502 // for set-meta ops, should go via GS3 authentication, which is off the GS3 library servlet … … 519 514 // finally, can do the AJAX call 520 515 521 console.log("*** Away to call: " + url);516 //console.log("*** Away to call: " + url); 522 517 var ajaxResponse = async_setting ? "*** No response received yet, async ajax request" : null; 523 518 … … 529 524 .success(function(response) { 530 525 ajaxResponse = response; 531 console.log("** (" + callingFunction + ") Response received from server: " + ajaxResponse);526 // console.log("** (" + callingFunction + ") Response received from server: " + ajaxResponse); 532 527 533 528 //var xml = $.parseXML(response); … … 564 559 } 565 560 566 console.log("*** (" + callingFunction + ") Response from server: " + ajaxResponse);567 568 } 569 570 console.log("*** Finished ajax call to: " + url);571 console.log("*** Got response: " + ajaxResponse);561 // console.log("*** (" + callingFunction + ") Response from server: " + ajaxResponse); 562 563 } 564 565 // console.log("*** Finished ajax call to: " + url); 566 // console.log("*** Got response: " + ajaxResponse); 572 567 573 568 return ajaxResponse;
Note:
See TracChangeset
for help on using the changeset viewer.