Improvements to study list selection, study/timepoint association UI (LT-116 and LT-60)

This commit is contained in:
Erik Ziegler committed 2016-01-13 11:50:07 +01:00
1 parent 41b75de814
commit cb8672576e
8 files changed
+179 -24

No files matched your search

@@ -0,0 +1,10 @@
/**
* Helper for setting checkboxes as checked or unchecked inside templates,
* based on another variable's value
*/
UI.registerHelper("inlineIf", function (value, match, attributeName) {
if(value === match) {
return attributeName;
}
return '';
});
+1
View File
@@ -155,6 +155,7 @@ Package.onUse(function (api) {
api.addFiles('lib/helpers/formatNumberPrecision.js', 'client');
api.addFiles('lib/helpers/formatPN.js', 'client');
api.addFiles('lib/helpers/formatTM.js', 'client');
api.addFiles('lib/helpers/inlineIf.js', 'client');
// Server-side functions
api.addFiles('server/seed.js', 'server');