Skip to content

Commit

Permalink
switched to relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wikier committed May 14, 2012
1 parent ce179d6 commit 9c2826b
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
10 changes: 5 additions & 5 deletions module/scripts/menu-bar-extensions.js
Expand Up @@ -32,7 +32,7 @@ RdfExporterMenuBar.rdfExportRows = function(format, ext) {
$(form)
.css("display", "none")
.attr("method", "post")
.attr("action", "/command/core/export-rows/" + name + "." + ext)
.attr("action", "../command/core/export-rows/" + name + "." + ext)
.attr("target", "gridworks-export");

$('<input />')
Expand Down Expand Up @@ -132,7 +132,7 @@ ReconciliationSindiceServiceDialog.prototype._footer= function(footer){
alert("Domain need to be provided!");
return;
}
$.post("/command/rdf-extension/addSindiceService",{"domain":domain},function(data){
$.post("../command/rdf-extension/addSindiceService",{"domain":domain},function(data){
RdfReconciliationManager.registerService(data,self._level);
},"json");
}).appendTo(footer);
Expand Down Expand Up @@ -213,7 +213,7 @@ ReconciliationRdfServiceDialog.prototype._footer = function(footer){

var services = ReconciliationManager.getAllServices();

$.post("/command/rdf-extension/addService",
$.post("../command/rdf-extension/addService",
{"datasource":"file_url","name":name,"url":file_url,properties:prop_uris, "file_format":file_format},
function(data){
self._dismissBusy();
Expand Down Expand Up @@ -302,7 +302,7 @@ ReconciliationSparqlServiceDialog.prototype._footer = function(footer){

RdfReconciliationManager.synchronizeServices(
function(){
$.post("/command/rdf-extension/addService",
$.post("../command/rdf-extension/addService",
{"datasource":"sparql","name":name,"url":endpoint,"type":type,"graph":graph_uri,properties:prop_uris},
function(data){
self._dismissBusy();
Expand All @@ -325,7 +325,7 @@ RdfReconciliationManager.synchronizeServices = function(onDone){
ids.push(services[i].url);
}
}
$.post("/command/rdf-extension/initializeServices",{"services":JSON.stringify(ids)},function(data){
$.post("command/rdf-extension/initializeServices",{"services":JSON.stringify(ids)},function(data){
RdfReconciliationManager.registerService(data);
if(onDone){
onDone();
Expand Down
4 changes: 2 additions & 2 deletions module/scripts/new-prefix-widget.html
Expand Up @@ -21,7 +21,7 @@
<tr>
<td>
<input type="radio" bind="upload_file_radio" value="file" name="vocab_fetch_method" />Import vocabulary terms from a file
<form id="file-upload-form" bind="file_upload_form" action="/command/rdf-extension/upload-file-add-prefix" enctype="multipart/form-data">
<form id="file-upload-form" bind="file_upload_form" action="../command/rdf-extension/upload-file-add-prefix" enctype="multipart/form-data">
<input type="hidden" id="vocab-hidden-prefix" name="vocab-prefix" />
<input type="hidden" id="vocab-hidden-uri" name="vocab-uri" />
<input type="hidden" id="vocab-hidden-project" name="project" />
Expand All @@ -43,4 +43,4 @@
</table>
</fieldset>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion module/scripts/rdf-data-table-view.js
Expand Up @@ -123,7 +123,7 @@ RdfDataTableView.getUriPreviewWidget = function(isLiteral,isRowNumberCell,baseUr
};
this._prepareUpdate(params);

var cmdUrl = "/command/rdf-extension/preview-rdf-expression?" ;
var cmdUrl = "../command/rdf-extension/preview-rdf-expression?" ;
$.post(
cmdUrl + $.param(params),
{
Expand Down
6 changes: 3 additions & 3 deletions module/scripts/rdf-schema-alignment.js
Expand Up @@ -136,7 +136,7 @@ RdfSchemaAlignmentDialog.prototype._previewRdf = function(){
var schema = this.getJSON();
self._previewPane.empty().html('<img src="images/large-spinner.gif" title="loading..."/>');
$.post(
"/command/rdf-extension/preview-rdf?" + $.param({ project: theProject.id }),
"../command/rdf-extension/preview-rdf?" + $.param({ project: theProject.id }),
{ schema: JSON.stringify(schema), engine: JSON.stringify(ui.browsingEngine.getJSON()) },
function(data) {
self._previewPane.empty();
Expand Down Expand Up @@ -232,7 +232,7 @@ RdfSchemaAlignmentDialog.prototype._replaceBaseUri = function(newBaseUri,doNotSa
var self = this;
RdfSchemaAlignment._defaultNamespace = newBaseUri;
if(!doNotSave){
$.post("/command/rdf-extension/save-baseURI?" + $.param({project: theProject.id }),{baseURI:newBaseUri},function(data){
$.post("../command/rdf-extension/save-baseURI?" + $.param({project: theProject.id }),{baseURI:newBaseUri},function(data){
if (data.code === "error"){
alert('Error:' + data.message)
}else{
Expand Down Expand Up @@ -273,4 +273,4 @@ RdfSchemaAlignmentDialog._findColumn = function(columnName) {
}
}
return null;
};
};
6 changes: 3 additions & 3 deletions module/scripts/rdf-schema-new-prefix-widget.js
Expand Up @@ -55,7 +55,7 @@ NewPrefixWidget.prototype.show = function(msg,def_prefix,onDone){
return;
}
dismissBusy = DialogSystem.showBusy('Trying to import vocabulary from ' + uri);
$.post("/command/rdf-extension/add-prefix",{name:name,uri:uri,"fetch-url":uri,project: theProject.id,fetch:fetchOption},function(data){
$.post("../command/rdf-extension/add-prefix",{name:name,uri:uri,"fetch-url":uri,project: theProject.id,fetch:fetchOption},function(data){
if (data.code === "error"){
alert('Error:' + data.message)
}else{
Expand Down Expand Up @@ -100,7 +100,7 @@ NewPrefixWidget.prototype.show = function(msg,def_prefix,onDone){

NewPrefixWidget.prototype.suggestUri = function(prefix){
var self = this;
$.get("/command/rdf-extension/get-prefix-cc-uri",{prefix:prefix},function(data){
$.get("../command/rdf-extension/get-prefix-cc-uri",{prefix:prefix},function(data){
if(!self._elmts.uri.val() && data.uri){
self._elmts.uri.val(data.uri);
if(self._elmts.message.text()){
Expand All @@ -110,4 +110,4 @@ NewPrefixWidget.prototype.suggestUri = function(prefix){
}
}
},"json");
};
};
4 changes: 2 additions & 2 deletions module/scripts/rdf-schema-vocabulary-manager.js
Expand Up @@ -18,7 +18,7 @@ function RdfPrefixesManager (dialog,prefixes){

RdfPrefixesManager.prototype._getDefaultPrefixes = function(onDone){
var self =this;
$.get("/command/rdf-extension/get-default-prefixes",{project:theProject.id},function(data){
$.get("../command/rdf-extension/get-default-prefixes",{project:theProject.id},function(data){
if(onDone){
onDone(data);
}
Expand All @@ -27,7 +27,7 @@ RdfPrefixesManager.prototype._getDefaultPrefixes = function(onDone){

RdfPrefixesManager.prototype._savePrefixes = function(onDone){
var self =this;
$.post("/command/rdf-extension/save-prefixes",{project:theProject.id,prefixes:JSON.stringify(self._prefixes)},function(data){
$.post("../command/rdf-extension/save-prefixes",{project:theProject.id,prefixes:JSON.stringify(self._prefixes)},function(data){
if(onDone){
onDone(data);
}
Expand Down
4 changes: 2 additions & 2 deletions module/scripts/rdf-service-dialog.html
Expand Up @@ -15,7 +15,7 @@
</table>
<fieldset class="rdf-reconcile-fieldset">
<legend>File details</legend>
<form id="file-upload-form" bind="file_upload_form" action="/command/rdf-extension/uploadFileAndAddService" enctype="multipart/form-data">
<form id="file-upload-form" bind="file_upload_form" action="../command/rdf-extension/uploadFileAndAddService" enctype="multipart/form-data">
<input type="hidden" name="service_name" bind="hidden_service_name" />
<input type="hidden" name="properties" bind="hidden_properties" />
<table>
Expand Down Expand Up @@ -73,4 +73,4 @@
</div>
</fieldset>

</div>
</div>
6 changes: 3 additions & 3 deletions module/scripts/sindice/sindice-dialog.js
Expand Up @@ -26,7 +26,7 @@ SindiceDialog.prototype.show = function(column){
SindiceDialog.prototype.guessDomain = function(column){
var self = this;
var dismissBusy = DialogSystem.showBusy('Finding related RDF datasets...(This could take up to 5 minutes)');
$.post("/command/rdf-extension/sindiceGuessType",{"project":theProject.id,"columnName":self._column.name},function(data){
$.post("../command/rdf-extension/sindiceGuessType",{"project":theProject.id,"columnName":self._column.name},function(data){
dismissBusy();
if(data.code==='error'){
alert(data.message);
Expand Down Expand Up @@ -57,8 +57,8 @@ SindiceDialog.prototype._footer = function(footer){
alert("a domain needs to be selected");
return;
}
$.post("/command/rdf-extension/addSindiceService",{"domain":domain},function(data){
$.post("../command/rdf-extension/addSindiceService",{"domain":domain},function(data){
RdfReconciliationManager.registerService(data,self._level);
},"json");
}).appendTo(footer);
};
};
2 changes: 1 addition & 1 deletion module/scripts/suggestterm.suggest.js
Expand Up @@ -74,7 +74,7 @@
$.extend($.suggest.suggestterm, {
defaults: $.extend(true, {}, $.suggest.suggest.defaults, {
service_url: "",
service_path: "/command/rdf-extension/suggest-term",
service_path: "../command/rdf-extension/suggest-term",
type_strict:"classes",
suggest_new:"Add it",
cache:false,
Expand Down

0 comments on commit 9c2826b

Please sign in to comment.