We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3b823f8f authored by Sarven Capadisli's avatar Sarven Capadisli

Leaves the original URL alone and adds ? or & when it does the XHR.

parent 8aa8e124
......@@ -63,11 +63,10 @@ SN.U.DialogBox = {
f.show();
}
else {
a[0].href = (a[0].href.match(/[\\?]/) === null) ? a[0].href+'?' : a[0].href+'&';
$.ajax({
type: 'GET',
dataType: 'xml',
url: a[0].href+'ajax=1',
url: a[0].href + ((a[0].href.match(/[\\?]/) === null)?'?':'&') + 'ajax=1',
beforeSend: function(formData) {
a.addClass('processing');
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment