summaryrefslogtreecommitdiff
path: root/sphinx/themes/basic/static/websupport.js
diff options
context:
space:
mode:
authorDaniel Neuhäuser <ich@danielneuhaeuser.de>2010-08-13 16:26:46 +0200
committerDaniel Neuhäuser <ich@danielneuhaeuser.de>2010-08-13 16:26:46 +0200
commit1fa4c78c38a0ed5cc983edfa1132cd65101614ce (patch)
treeb2a2765e63b4b9dafc931d2b9cd1be63332971ff /sphinx/themes/basic/static/websupport.js
parent1509c0d3d353c72591f2ff5997c00f98d1b71555 (diff)
downloadsphinx-git-1fa4c78c38a0ed5cc983edfa1132cd65101614ce.tar.gz
Put spaces around operators
Diffstat (limited to 'sphinx/themes/basic/static/websupport.js')
-rw-r--r--sphinx/themes/basic/static/websupport.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/sphinx/themes/basic/static/websupport.js b/sphinx/themes/basic/static/websupport.js
index 863a57a5a..74e28c19a 100644
--- a/sphinx/themes/basic/static/websupport.js
+++ b/sphinx/themes/basic/static/websupport.js
@@ -23,9 +23,9 @@
var columns = textarea.cols;
var lineCount = 0;
$.each(lines, function() {
- lineCount += Math.ceil(this.length/columns) || 1;
+ lineCount += Math.ceil(this.length / columns) || 1;
});
- var height = lineHeight*(lineCount+1);
+ var height = lineHeight * (lineCount + 1);
$(textarea).css('height', height);
};
})(jQuery);
@@ -158,8 +158,8 @@
var popupWidth = $('div.popup_comment').width();
$('div.popup_comment')
.css({
- 'top': 100+$(window).scrollTop(),
- 'left': clientWidth/2-popupWidth/2,
+ 'top': 100 + $(window).scrollTop(),
+ 'left': clientWidth / 2 - popupWidth / 2,
'position': 'absolute'
})
.fadeIn('fast', function() {
@@ -207,7 +207,7 @@
appendComments(comments, ul);
commentListEmpty = false;
}
- $('h3#comment_notification').slideUp(speed+200);
+ $('h3#comment_notification').slideUp(speed + 200);
ul.slideDown(speed);
},
error: function(request, textStatus, error) {
@@ -448,11 +448,9 @@
// If this is not an unvote, and the other vote arrow has
// already been pressed, unpress it.
- if ((d.value != 0) && (data.vote == d.value*-1)) {
- $('#' + (d.value == 1 ? 'd' : 'u') + 'u' + d.comment_id)
- .hide();
- $('#' + (d.value == 1 ? 'd' : 'u') + 'v' + d.comment_id)
- .show();
+ if ((d.value != 0) && (data.vote == d.value * -1)) {
+ $('#' + (d.value == 1 ? 'd' : 'u') + 'u' + d.comment_id).hide();
+ $('#' + (d.value == 1 ? 'd' : 'u') + 'v' + d.comment_id).show();
}
// Update the comments rating in the local data.