aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-05-21 21:19:29 +0200
committerGravatar Tom Willemse2013-05-21 21:19:29 +0200
commita5eb8e2da51934ee10f0aa17496838c3999bd5c5 (patch)
tree6be693a3fc3c1c12e8477eabc997abb42a745b64 /js
parentbf8518848de97aed928513f4a7b62f1157e5d52c (diff)
downloadscrumelo-a5eb8e2da51934ee10f0aa17496838c3999bd5c5.tar.gz
scrumelo-a5eb8e2da51934ee10f0aa17496838c3999bd5c5.zip
Hide new story form
Use jQuery to allow it to be toggled between visible and invisible.
Diffstat (limited to 'js')
-rw-r--r--js/scrumelo.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/scrumelo.js b/js/scrumelo.js
new file mode 100644
index 0000000..055652a
--- /dev/null
+++ b/js/scrumelo.js
@@ -0,0 +1,8 @@
+(function ($) {
+ $(document).ready(function () {
+ $(".hide").hide();
+ $(".toggle").click(function () {
+ $(document.getElementById($(this).data("show"))).toggle();
+ });
+ });
+})(jQuery);