Improvements to study list selection, study/timepoint association UI (LT-116 and LT-60)
This commit is contained in:
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 '';
|
||||
});
|
||||
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user