Commented a lot of functions. Tried to get jsDoc and/or docco to work

This commit is contained in:
Erik Ziegler committed 2015-11-16 17:49:35 +01:00
1 parent 14f47ad0e3
commit f349572d53
46 files changed
+654 -274

No files matched your search

+4 -2
View File
@@ -1,9 +1,11 @@
/**
* A global Blaze UI helper function to format DICOM Dates using the Moment library
*/
UI.registerHelper('formatDA', function (context, format, options) {
if (!context) {
return undefined;
}
var date = context;
var dateAsMoment = moment(date, "YYYYMMDD");
var dateAsMoment = moment(context, "YYYYMMDD");
var strFormat = "MMM D, YYYY";
if (options) {
strFormat = format;
@@ -1,4 +1,7 @@
UI.registerHelper('formatNumberPrecision', function(context, precision, options) {
/**
* A global Blaze UI helper to format a float value to a specified precision
*/
UI.registerHelper('formatNumberPrecision', function(context, precision) {
if (context) {
return parseFloat(context).toFixed(precision);
}
+5 -3
View File
@@ -1,7 +1,9 @@
UI.registerHelper('formatPN', function (context, format, options) {
/**
* A global Blaze UI helper to format a patient name for display purposes
*/
UI.registerHelper('formatPN', function (context) {
if (!context) {
return undefined;
}
var patientName = context.replace('^', ', ');
return patientName;
return context.replace('^', ', ');
});
+5 -4
View File
@@ -1,13 +1,14 @@
UI.registerHelper('formatTM', function(context, format, options) {
/**
* A global Blaze UI helper to format a DICOM Time for display using the Moment library
*/
UI.registerHelper('formatTM', function(context, format) {
if (!context) {
return undefined;
}
var date = context;
var dateAsMoment = moment(date);
var dateAsMoment = moment(context);
var strFormat = "HH:mm:ss";
if (options) {
strFormat = format;
}
return dateAsMoment.format(strFormat);
});