Index: lams_learning/web/includes/javascript/kumalive.js
===================================================================
diff -u -r3cccb9ba98efd5722b7365ffec582e2889143166 -r97755cd4cab4cb0aadd05603731b76238f22a9e7
--- lams_learning/web/includes/javascript/kumalive.js (.../kumalive.js) (revision 3cccb9ba98efd5722b7365ffec582e2889143166)
+++ lams_learning/web/includes/javascript/kumalive.js (.../kumalive.js) (revision 97755cd4cab4cb0aadd05603731b76238f22a9e7)
@@ -107,11 +107,14 @@
label = $('').appendTo(checkbox);
$('').text(this).appendTo(label);
$('').attr('type', 'checkbox')
+ .prop('checked', true)
.prependTo(label);
}
});
}
- if (rubricsDiv.is(':empty')){
+ // do not show the box at all if there are no rubrics
+ // (exactly: there is the single default blank one)
+ if ($('.checkbox', rubricsDiv).length == 0){
rubricsDiv.remove();
}