summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-02-23 00:27:41 +0100
committerSarven Capadisli <csarven@status.net>2010-02-23 00:27:41 +0100
commit3b823f8fbde531b00f9770fb214543b965851036 (patch)
tree63d6539d2767f5ec30257ac845d7311f25fa9d1b /plugins
parent8aa8e124cbeed84d7c32668860154783a5abd5c1 (diff)
Leaves the original URL alone and adds ? or & when it does the XHR.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OStatus/js/ostatus.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/OStatus/js/ostatus.js b/plugins/OStatus/js/ostatus.js
index 148a05f6f..1fc44b21b 100644
--- a/plugins/OStatus/js/ostatus.js
+++ b/plugins/OStatus/js/ostatus.js
@@ -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');
},