Bug 3941: Follow up
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Thu, 22 Sep 2011 21:35:08 +0000 (23:35 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 22 Sep 2011 22:06:47 +0000 (10:06 +1200)
Improving the notices field to make it possible
- to expand more than one field at a time
- hide the notice content with another click

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt

index 8dcf7d7..4a6753e 100644 (file)
                dateFormat: 'uk'
            [% END %]
        });
-    
-    $("a.message-title").click(function(e){
-        $("p.message").hide();
-        $(this).next("p").show();
+
+    $(".message").hide();
+    $(".message-title").click(function(e){
+        $(this).next(".message").toggle();
         e.preventDefault();
     });