Skip to content

Commit

Permalink
added code for testing and deprecating get_model_table api see #433
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Letter committed Sep 30, 2015
1 parent 330fb9c commit dee5aa1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions web-server/js/slycat-web-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,32 @@ define("slycat-web-client", ["slycat-server-root", "jquery", "URI"], function(se
if(params.index)
url += "?index=" + params.index;


// //other section
// var new_url = server_root + "models/" + params.mid + "/arraysets/" + params.aid + "/metadata?arrays=" + (params.array || "0") + "%3b1&" +"statistics=0";
//// if(params.index)
//// new_url += "?index=" + params.index;
// $.ajax(
// {
// dataType: "json",
// type: "GET",
// url: new_url,
// success: function(result)
// {
// if(params.success)
// console.log("\nNEW: " + new_url + "\n" + JSON.stringify(result) +"\n");
// //params.success(result);
// },
// error: function(request, status, reason_phrase)
// {
// if(params.error)
// console.log("\nNEW: " + url + "\n" + request + reason_phrase + status +"\n");
// //params.error(request, status, reason_phrase);
// },
// });
// //END other section


$.ajax(
{
dataType: "json",
Expand All @@ -418,6 +444,7 @@ define("slycat-web-client", ["slycat-server-root", "jquery", "URI"], function(se
success: function(result)
{
if(params.success)
console.log("\nOLD: " + url + "\n" + JSON.stringify(result) +"\n");
params.success(result);
},
error: function(request, status, reason_phrase)
Expand Down

0 comments on commit dee5aa1

Please sign in to comment.