Show comments part of the draggable when hovering over it (no comments yet though)

This commit is contained in:
Paul van Tilburg 2012-01-16 00:17:51 +01:00
parent 03f6469223
commit d201cd9fa7
2 changed files with 8 additions and 2 deletions

View file

@ -29,6 +29,10 @@ $(document).ready(function() {
submit: 'OK',
cancel: 'Discard',
style: 'inherit' });
last_drag.hover(function() { $(this).find(".comments").fadeIn(); },
function() { $(this).find(".comments").fadeOut(); });
// FIXME: get the comments!
last_drag.find(".comments").text("Comments (0)").hide();
// Highlight contained code.
last_drag.find("pre code").each(function(idx, elem) {
hljs.highlightBlock(elem, ' ');

View file

@ -91,7 +91,7 @@ pre {
}
.draggable .header {
padding-bottom: 3px;
padding-bottom: 5px;
font-size: 11px;
}
@ -123,5 +123,7 @@ pre {
}
.draggable .comments {
display: none;
color: #999;
font-size: 11px;
padding-top: 5px;
}