From: Robin Millette Date: Sun, 24 May 2009 22:40:11 +0000 (-0400) Subject: Made ajax link to show attachment popups relative in util.js X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b0a891e92b55ea6d3323e8efe528f46afda7c1fc;p=quix0rs-gnu-social.git Made ajax link to show attachment popups relative in util.js --- diff --git a/js/util.js b/js/util.js index 1b75c5e227..6511c0380d 100644 --- a/js/util.js +++ b/js/util.js @@ -20,7 +20,7 @@ $(document).ready(function(){ // attachments and attachment pages not used at the moment except for attachment_ajax version // $('.attachments').click(function() {$().jOverlay({zIndex:999, success:function(html) {$('.attachment').click(function() {$().jOverlay({url:$(this).attr('href') + '/ajax'}); return false; }); // }, url:$(this).attr('href') + '/ajax'}); return false; }); - $('.attachment').click(function() {$().jOverlay({url:'http://laptop.waglo.com/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; }); + $('.attachment').click(function() {$().jOverlay({url:'../attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; }); // count character on keyup function counter(event){