Ignore:
Timestamp:
2017-03-31T20:51:11+13:00 (7 years ago)
Author:
ak19
Message:

Clean up phase for GS3 add user comments. Removed unwanted code, but only commenting out debug statements. Will get rid of debug statements after user comments tested to work successfully on GS3 Windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js

    r31558 r31559  
    467467    // check for any caller overrides
    468468    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     //}
    472469    if(opts["requestMethod"] != null) {
    473470        method = opts["requestMethod"];
     
    502499    if(_use_payload_in_data_not_url_form) { // using data payload to do AJAX (regardless of request method)
    503500   
    504     //method = "POST";
    505 
    506501    // for get-meta operations, go directly through metadata-server.pl
    507502    // for set-meta ops, should go via GS3 authentication, which is off the GS3 library servlet
     
    519514    // finally, can do the AJAX call
    520515
    521     console.log("*** Away to call: " + url);
     516    //console.log("*** Away to call: " + url);
    522517    var ajaxResponse = async_setting ? "*** No response received yet, async ajax request" : null;
    523518
     
    529524        .success(function(response) {
    530525        ajaxResponse = response;
    531         console.log("** (" + callingFunction + ") Response received from server: " + ajaxResponse);
     526//      console.log("** (" + callingFunction + ") Response received from server: " + ajaxResponse);
    532527       
    533528        //var xml = $.parseXML(response);
     
    564559    }
    565560   
    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);
    572567
    573568    return ajaxResponse;
Note: See TracChangeset for help on using the changeset viewer.