fix #1396 and add a test for it

This commit is contained in:
Reinier Balt 2013-02-18 17:14:37 +01:00
parent 28bfbe6f1d
commit fe31eb75a5
3 changed files with 28 additions and 3 deletions

View file

@ -9,7 +9,11 @@
<% end -%>
function hide_empty_message() {
$('contexts-empty-nd').hide();
<% if @context.hidden? -%>
$('div#hidden-contexts-empty-nd').hide();
<% else -%>
$('div#active-contexts-empty-nd').hide();
<% end -%>
}
function add_context(state) {