diff options
Diffstat (limited to 'static/functions')
-rw-r--r-- | static/functions/comments.js | 10 | ||||
-rw-r--r-- | static/functions/global.js | 1 | ||||
-rw-r--r-- | static/functions/script_start.js | 6 |
3 files changed, 8 insertions, 9 deletions
diff --git a/static/functions/comments.js b/static/functions/comments.js index 074053f..52ba848 100644 --- a/static/functions/comments.js +++ b/static/functions/comments.js @@ -26,14 +26,14 @@ function Quote(post, user, link) { postid = post; // check if reply_box element exists and that user is in the forums - if(!$('#reply_box').length && url.path == "forums") { + if (!$('#reply_box').length && url.path == "forums") { if ($("#quote_" + postid).text() == "Quote") { original_post = $("#content" + postid).html(); $("#quote_" + postid).text("Unquote"); $.ajax({ type : "POST", - url: "ajax.php?action=raw_bbcode", - dataType: "json", + url : "ajax.php?action=raw_bbcode", + dataType : "json", data : { "postid" : postid } @@ -65,8 +65,8 @@ function Edit_Form(post,key) { //If no edit is already going underway or a previous edit was finished, make the necessary dom changes. if (!$('#editbox' + postid).results() || $('#editbox' + postid + '.hidden').results()) { $('#reply_box').ghide(); - if (location.href.match(/torrents\.php/) || - location.href.match(/artist\.php/)) { + if (location.href.match(/torrents\.php/) + || location.href.match(/artist\.php/)) { boxWidth = "50"; } else { boxWidth = "80"; diff --git a/static/functions/global.js b/static/functions/global.js index a691f28..389c96d 100644 --- a/static/functions/global.js +++ b/static/functions/global.js @@ -141,4 +141,3 @@ function select_all(el) { textRange.select(); } } - diff --git a/static/functions/script_start.js b/static/functions/script_start.js index 8f76d0c..b6f43de 100644 --- a/static/functions/script_start.js +++ b/static/functions/script_start.js @@ -212,7 +212,7 @@ function URL() { // jQuery plugin to prevent double submission of forms jQuery.fn.preventDoubleSubmission = function() { - $(this).bind('submit',function(e){ + $(this).bind('submit', function(e){ var $form = $(this); if ($form.data('submitted') === true) { @@ -275,7 +275,7 @@ jQuery.extend(jQuery.prototype, { var classes = object.className.split(' '); var result = array_search(class_name, classes); if (result !== false) { - classes.splice(result,1); + classes.splice(result, 1); object.className = classes.join(' '); } } @@ -297,7 +297,7 @@ jQuery.extend(jQuery.prototype, { var classes = object.className.split(' '); var result = array_search(class_name, classes); if (result !== false) { - classes.splice(result,1); + classes.splice(result, 1); object.className = classes.join(' '); } else { if (object.className === '') { |