diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-09-10 17:20:38 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-09-10 17:20:38 +0000 |
commit | a78de30eadc04d0e8b975ac149677cf97d5a2da7 (patch) | |
tree | b5c0965c1b7f1c81d09d5ecab097316a61434948 /js | |
parent | d46b903a38c726f7811d5e92d7d7d4830fafc8c1 (diff) | |
download | pkgsubmit-a78de30eadc04d0e8b975ac149677cf97d5a2da7.tar pkgsubmit-a78de30eadc04d0e8b975ac149677cf97d5a2da7.tar.gz pkgsubmit-a78de30eadc04d0e8b975ac149677cf97d5a2da7.tar.bz2 pkgsubmit-a78de30eadc04d0e8b975ac149677cf97d5a2da7.tar.xz pkgsubmit-a78de30eadc04d0e8b975ac149677cf97d5a2da7.zip |
explicit close button for file view
Diffstat (limited to 'js')
-rw-r--r-- | js/pkgsubmit.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/pkgsubmit.js b/js/pkgsubmit.js index 851462c..76727b8 100644 --- a/js/pkgsubmit.js +++ b/js/pkgsubmit.js @@ -175,6 +175,13 @@ function show_log_file(ev) { d.animate({ scrollTop: d.prop("scrollHeight") }, 200); }) ) + .append($("<button />", { + class: "close", + html: "close" + }).on("click", function (ev) { + $("#" + cId).toggle(); + }) + ) ) .animate({ scrollTop: $("#" + elId).prop("scrollHeight") }, 1000); } |