review/static/scripts/ui.js @ af974f8d1eec
Merged in ksander314/hg-review/issue-90 (pull request #12)
Fix issue #90.
author |
Christophe de Vienne <cdevienne@gmail.com> |
date |
Wed, 17 Dec 2014 10:21:27 +0100 |
parents |
3fe8d9b6705b |
children |
(none) |
$(function() {
$("a.fold").toggle(function(event) {
$(event.target).closest(".file").find(".file-review-contents").slideUp("fast", function () {
$(event.target).closest("h3").find(".status").html("→");
});
return false;
}, function(event) {
$(event.target).closest(".file").find(".file-review-contents").slideDown("fast", function() {
$(event.target).closest("h3").find(".status").html("↓");
});
return false;
});
$(".submit").live('click', function() {
$(this).closest("form").submit();
});
});