Bug 3941: Follow up

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>
This commit is contained in:
Katrin Fischer 2011-09-22 23:35:08 +02:00 committed by Chris Cormack
parent 042fd50313
commit c5dfe7bb35

View file

@ -10,10 +10,10 @@
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();
});