Leaves the original URL alone and adds ? or & when it does the XHR.
This commit is contained in:
parent
8aa8e124cb
commit
3b823f8fbd
@ -63,11 +63,10 @@ SN.U.DialogBox = {
|
|||||||
f.show();
|
f.show();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
a[0].href = (a[0].href.match(/[\\?]/) === null) ? a[0].href+'?' : a[0].href+'&';
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'xml',
|
dataType: 'xml',
|
||||||
url: a[0].href+'ajax=1',
|
url: a[0].href + ((a[0].href.match(/[\\?]/) === null)?'?':'&') + 'ajax=1',
|
||||||
beforeSend: function(formData) {
|
beforeSend: function(formData) {
|
||||||
a.addClass('processing');
|
a.addClass('processing');
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user