# HG changeset patch # User Marcin Kuzminski # Date 2011-11-16 22:50:36 # Node ID 0b8cf2e82bd46d264afa6d801bf61ae63f56d633 # Parent 6944b1249f285e28e51aabad8760a1b59f45dc2a removed lame js hover to css hover ! diff --git a/rhodecode/public/css/diff.css b/rhodecode/public/css/diff.css --- a/rhodecode/public/css/diff.css +++ b/rhodecode/public/css/diff.css @@ -135,12 +135,11 @@ cursor: pointer; padding:0; margin:0; } - -.line.highlight{ - background-color:#FFFFCC; - cursor: pointer; - background-image:url("../images/icons/comment_add.png"); - background-repeat:no-repeat; - background-position: right; - background-position: 100% 50%; -} +.line:hover{ + background-color:#FFFFCC !important; + cursor: pointer !important; + background-image:url("../images/icons/comment_add.png") !important; + background-repeat:no-repeat !important; + background-position: right !important; + background-position: 100% 50% !important; +} \ No newline at end of file diff --git a/rhodecode/templates/changeset/changeset.html b/rhodecode/templates/changeset/changeset.html --- a/rhodecode/templates/changeset/changeset.html +++ b/rhodecode/templates/changeset/changeset.html @@ -218,16 +218,7 @@ } }) - YUE.on(YUQ('.line'),'mouseenter',function(e){ - var tr = e.currentTarget; - if(YUD.hasClass(tr,'form-open') || YUD.hasClass(tr,'context')){ - return - } - YUD.addClass(tr,'highlight'); - }); - YUE.on(YUQ('.line'),'mouseleave',function(e){ - YUD.removeClass(e.currentTarget,'highlight'); - }); + YUE.on(YUQ('.line'),'click',function(e){ var tr = e.currentTarget;