Relative URL
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-analysis/nlphub@165861 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4f161ecff4
commit
9d0599a1a7
|
@ -15,7 +15,7 @@ var checkedAnnotation = "";
|
|||
var algIndexedArray = [];
|
||||
var computedLanguage = "";
|
||||
var dataMiner = "";
|
||||
var appRoot = "/nlphub";
|
||||
var appRoot = ".";
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
// Starting point: get the csv file with algorithm parameters and set the page
|
||||
|
@ -39,6 +39,7 @@ checkInputLink = function() {
|
|||
freeText = data;
|
||||
var uploaderUrl = appRoot + "/nlphub-uploader-servlet?getlang=on&freetext="
|
||||
+ encodeURIComponent(freeText) + "&dataminer=" + encodeURIComponent(dataMiner);
|
||||
|
||||
if(gCubeToken.length > 0)
|
||||
uploaderUrl += "&gcube-token=" + gCubeToken;
|
||||
$.ajax({
|
||||
|
@ -248,6 +249,7 @@ setEventListeners = function() {
|
|||
freeText = $("#input-textarea").val();
|
||||
var uploaderUrl = appRoot + "/nlphub-uploader-servlet?freetext="
|
||||
+ encodeURIComponent(freeText) + "&dataminer=" + encodeURIComponent(dataMiner);
|
||||
|
||||
if(gCubeToken.length > 0)
|
||||
uploaderUrl += "&gcube-token=" + gCubeToken;
|
||||
|
||||
|
@ -628,7 +630,6 @@ getOutputJson = function(message) {
|
|||
parameters += "&plink=" + encodeURI(publicLink);
|
||||
parameters += "&lang=" + $("#language-select").val();
|
||||
parameters += "&tobemap=" + encodeURI(tobemap);
|
||||
//console.log(parameters);
|
||||
|
||||
var mapperUrl = appRoot + "/nlphub-mapper-servlet?" + parameters;
|
||||
if(gCubeToken.length > 0)
|
||||
|
@ -640,7 +641,6 @@ getOutputJson = function(message) {
|
|||
async : true,
|
||||
success : function(data, stato) {
|
||||
hideProgress();
|
||||
//console.log(data);
|
||||
if ((typeof (data.response) != "undefined")
|
||||
&& (data.response.trim().toUpperCase() == "ERROR")) {
|
||||
alert("ERROR\n" + data.message);
|
||||
|
|
Loading…
Reference in New Issue