summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-06-17 07:49:41 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-06-17 07:49:41 +0000
commit0e4d8c416db4c838e94df3df77c2e4b14a0e1851 (patch)
treee97449d122425bcaff03a11d67ad484fc41dccd3 /js/util.js
parentbefbfc9c73a75bac9d7dac4a4b7a21bd515ce1b4 (diff)
Removed NoticeHover from JavaScript for speed gain. Using CSS instead
to handle the notice hover state. The difference is only seen in the conversation page.
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js13
1 files changed, 1 insertions, 12 deletions
diff --git a/js/util.js b/js/util.js
index fd2500d44..ce0c20d31 100644
--- a/js/util.js
+++ b/js/util.js
@@ -230,21 +230,10 @@ $(document).ready(function(){
};
$("#form_notice").ajaxForm(PostNotice);
$("#form_notice").each(addAjaxHidden);
- NoticeHover();
NoticeReply();
NoticeAttachments();
});
-
-function NoticeHover() {
- function mouseHandler(e) {
- $(e.target).closest('li.hentry')[(e.type === 'mouseover') ? 'addClass' : 'removeClass']('hover');
- };
- $('#content .notices').mouseover(mouseHandler);
- $('#content .notices').mouseout(mouseHandler);
-}
-
-
function NoticeReply() {
if ($('#notice_data-text').length > 0) {
$('#content .notice').each(function() {
@@ -319,4 +308,4 @@ function NoticeAttachments() {
$(this).closest(".entry-title").removeClass('ov');
}
);
-}
+} \ No newline at end of file