Show comments part of the draggable when hovering over it (no comments yet though)
This commit is contained in:
parent
03f6469223
commit
d201cd9fa7
|
@ -29,6 +29,10 @@ $(document).ready(function() {
|
||||||
submit: 'OK',
|
submit: 'OK',
|
||||||
cancel: 'Discard',
|
cancel: 'Discard',
|
||||||
style: 'inherit' });
|
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.
|
// Highlight contained code.
|
||||||
last_drag.find("pre code").each(function(idx, elem) {
|
last_drag.find("pre code").each(function(idx, elem) {
|
||||||
hljs.highlightBlock(elem, ' ');
|
hljs.highlightBlock(elem, ' ');
|
||||||
|
|
|
@ -91,7 +91,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.draggable .header {
|
.draggable .header {
|
||||||
padding-bottom: 3px;
|
padding-bottom: 5px;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,5 +123,7 @@ pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
.draggable .comments {
|
.draggable .comments {
|
||||||
display: none;
|
color: #999;
|
||||||
|
font-size: 11px;
|
||||||
|
padding-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue