Skip to content

Commit 66af74e

Browse files
author
Baohong Zhang
committed
Removed trailing slash from url
1 parent dfcd618 commit 66af74e

3 files changed

Lines changed: 21 additions & 21 deletions

File tree

config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ read -d '' insertL << EOF
5757
},
5858
headerTitle: function () {return '<strong>Visualization in Plugin</strong>'},
5959
contentAjax: {
60-
url: window.location.href+'/static/interface.html',
60+
url: window.location.href.replace(/\\\/+$/,'')+'/static/interface.html',
6161
done: function (panel) {
6262
setInnerHTML(panel.content, this.responseText);
6363
}

interface.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ <h3>Brushed ranges</h3>
11301130
/*
11311131
$.ajax({
11321132
type:"POST",
1133-
url: "VIP",
1133+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
11341134
data:JSON.stringify({'method':"MINX"}),
11351135
contentType: 'application/json;charset=UTF-8',//
11361136
success: function(res){
@@ -1192,7 +1192,7 @@ <h3>Brushed ranges</h3>
11921192
console.log("VIP (Visualization in Plugin) is ready.");
11931193
$.ajax({
11941194
type:"POST",
1195-
url: "VIP",
1195+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
11961196
data:JSON.stringify({'method':"HELLO"}),
11971197
contentType: 'application/json;charset=UTF-8',
11981198
success: function(res){
@@ -1964,7 +1964,7 @@ <h3>Brushed ranges</h3>
19641964
document.getElementById("GDspin").style.visibility="visible";
19651965
$.ajax({
19661966
type:"POST",
1967-
url: "VIP",
1967+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
19681968
data:JSON.stringify(D),
19691969
contentType: 'application/json;charset=UTF-8',
19701970
success: function(res){
@@ -2034,7 +2034,7 @@ <h3>Brushed ranges</h3>
20342034
'figOpt':window.figOpt};
20352035
$.ajax({
20362036
type:"POST",
2037-
url: "VIP",
2037+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
20382038
data:JSON.stringify(D),
20392039
contentType: 'application/json;charset=UTF-8',//
20402040
success: function(res){
@@ -2150,7 +2150,7 @@ <h3>Brushed ranges</h3>
21502150

21512151
$.ajax({
21522152
type:"POST",
2153-
url: "VIP",
2153+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
21542154
data:JSON.stringify(D),
21552155
contentType: 'application/json;charset=UTF-8',//
21562156
success: function(res){
@@ -2274,7 +2274,7 @@ <h3>Brushed ranges</h3>
22742274

22752275
$.ajax({
22762276
type:"POST",
2277-
url: "VIP",
2277+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
22782278
data:JSON.stringify(D),
22792279
contentType: 'application/json;charset=UTF-8',//
22802280
success: function(res){
@@ -2389,7 +2389,7 @@ <h3>Brushed ranges</h3>
23892389
D['method'] = 'HEATplot';
23902390
$.ajax({
23912391
type:"POST",
2392-
url: "VIP",
2392+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
23932393
data:JSON.stringify(D),
23942394
contentType: 'application/json;charset=UTF-8',//
23952395
success: function(res){
@@ -2421,7 +2421,7 @@ <h3>Brushed ranges</h3>
24212421
D['method'] = 'HEATdata';
24222422
$.ajax({
24232423
type:"POST",
2424-
url: "VIP",
2424+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
24252425
data:JSON.stringify(D),
24262426
contentType: 'application/json;charset=UTF-8',//
24272427
success: function(res){
@@ -2507,7 +2507,7 @@ <h3>Brushed ranges</h3>
25072507
$(".DEGpngBT").prop('disabled',true);
25082508
$.ajax({
25092509
type:"POST",
2510-
url: "VIP",
2510+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
25112511
data:JSON.stringify(D),
25122512
contentType: 'application/json;charset=UTF-8',//
25132513
success: function(res){
@@ -2625,7 +2625,7 @@ <h3>Brushed ranges</h3>
26252625
document.getElementById("DOTspin").style.visibility="visible";
26262626
$.ajax({
26272627
type:"POST",
2628-
url: "VIP",
2628+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
26292629
data:JSON.stringify(D),
26302630
contentType: 'application/json;charset=UTF-8',//
26312631
success: function(res){
@@ -2702,7 +2702,7 @@ <h3>Brushed ranges</h3>
27022702
document.getElementById("TRAKspin").style.visibility="visible";
27032703
$.ajax({
27042704
type:"POST",
2705-
url: "VIP",
2705+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
27062706
data:JSON.stringify(D),
27072707
contentType: 'application/json;charset=UTF-8',//
27082708
success: function(res){
@@ -2791,7 +2791,7 @@ <h3>Brushed ranges</h3>
27912791
document.getElementById("DENSspin").style.visibility="visible";
27922792
$.ajax({
27932793
type:"POST",
2794-
url: "VIP",
2794+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
27952795
data:JSON.stringify(D),
27962796
contentType: 'application/json;charset=UTF-8',//
27972797
success: function(res){
@@ -2863,7 +2863,7 @@ <h3>Brushed ranges</h3>
28632863
'figOpt':window.figOpt};
28642864
$.ajax({
28652865
type:"POST",
2866-
url: "VIP",
2866+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
28672867
data:JSON.stringify(D),
28682868
contentType: 'application/json;charset=UTF-8',//
28692869
success: function(res){
@@ -2950,7 +2950,7 @@ <h3>Brushed ranges</h3>
29502950
}
29512951
$.ajax({
29522952
type:"POST",
2953-
url: "VIP",
2953+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
29542954
data:JSON.stringify(D),
29552955
contentType: 'application/json;charset=UTF-8',//
29562956
success: function(res){
@@ -3025,7 +3025,7 @@ <h3>Brushed ranges</h3>
30253025
'figOpt':window.figOpt};
30263026
$.ajax({
30273027
type:"POST",
3028-
url: "VIP",
3028+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
30293029
data:JSON.stringify(D),
30303030
contentType: 'application/json;charset=UTF-8',//
30313031
success: function(res){
@@ -3104,7 +3104,7 @@ <h3>Brushed ranges</h3>
31043104
document.getElementById("SANKspin").style.visibility="visible";
31053105
$.ajax({
31063106
type:"POST",
3107-
url: "VIP",
3107+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
31083108
data:JSON.stringify(D),
31093109
contentType: 'application/json;charset=UTF-8',//
31103110
success: function(res){
@@ -3134,7 +3134,7 @@ <h3>Brushed ranges</h3>
31343134
document.getElementById("SANKspin").style.visibility="visible";
31353135
$.ajax({
31363136
type:"POST",
3137-
url: "VIP",
3137+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
31383138
data:JSON.stringify(D),
31393139
contentType: 'application/json;charset=UTF-8',//
31403140
success: function(res){
@@ -3206,7 +3206,7 @@ <h3>Brushed ranges</h3>
32063206
$("#STACBARresize").html("");
32073207
$.ajax({
32083208
type:"POST",
3209-
url: "VIP",
3209+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
32103210
data:JSON.stringify(D),
32113211
contentType: 'application/json;charset=UTF-8',//
32123212
success: function(res){
@@ -3289,7 +3289,7 @@ <h3>Brushed ranges</h3>
32893289
'script':editor.getSession().getValue()};
32903290
$.ajax({
32913291
type:"POST",
3292-
url: "VIP",
3292+
url: window.location.href.replace(/\/+$/,'')+"/VIP",
32933293
data:JSON.stringify(D),
32943294
contentType: 'application/json;charset=UTF-8',//
32953295
success: function(res){

update.index_template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ read -d '' insertL << EOF
4141
},
4242
headerTitle: function () {return '<strong>Visualization in Plugin</strong>'},
4343
contentAjax: {
44-
url: window.location.href+'/static/interface.html',
44+
url: window.location.href.replace(/\\\/+$/,'')+'/static/interface.html',
4545
done: function (panel) {
4646
setInnerHTML(panel.content, this.responseText);
4747
}

0 commit comments

Comments
 (0)