]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Leaves the original URL alone and adds ? or & when it does the XHR.
authorSarven Capadisli <csarven@status.net>
Mon, 22 Feb 2010 23:27:41 +0000 (00:27 +0100)
committerSarven Capadisli <csarven@status.net>
Mon, 22 Feb 2010 23:27:41 +0000 (00:27 +0100)
plugins/OStatus/js/ostatus.js

index 148a05f6f642586ed1702fd6d3751be52615e42d..1fc44b21b614d5320bc5c870dfff3d9d1fd26aa9 100644 (file)
@@ -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');
                 },