summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-10 17:20:38 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-10 17:20:38 +0000
commita78de30eadc04d0e8b975ac149677cf97d5a2da7 (patch)
treeb5c0965c1b7f1c81d09d5ecab097316a61434948 /js
parentd46b903a38c726f7811d5e92d7d7d4830fafc8c1 (diff)
downloadpkgsubmit-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.js7
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);
}