[open-ils-commits] r12436 - trunk/Open-ILS/web/reports/xul (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 6 08:41:50 EST 2009


Author: miker
Date: 2009-03-06 08:41:49 -0500 (Fri, 06 Mar 2009)
New Revision: 12436

Modified:
   trunk/Open-ILS/web/reports/xul/template-config.js
   trunk/Open-ILS/web/reports/xul/transforms.js
Log:
Patch from Jeff Godin:

The "First 5 characters" transform appears to be broken due to a typo,
patch attached. To fix previously broken templates created using this
transform, clone, re-select the First 5 characters transform on any fields
where you were using it, and save the template.

Also in this patch, change from confirm() to alert() for "Template NAME
was successfully saved." No point in using confirm(), nothing was checking
the return value, etc.



Modified: trunk/Open-ILS/web/reports/xul/template-config.js
===================================================================
--- trunk/Open-ILS/web/reports/xul/template-config.js	2009-03-06 02:09:00 UTC (rev 12435)
+++ trunk/Open-ILS/web/reports/xul/template-config.js	2009-03-06 13:41:49 UTC (rev 12436)
@@ -804,7 +804,7 @@
 				alertILSEvent(res);
 			} else {
 				if( res && res != '0' ) {
-					confirm(dojo.string.substitute( rpt_strings.TEMPLATE_CONF_SUCCESS_SAVE, [tmpl.name()] ));
+					alert(dojo.string.substitute( rpt_strings.TEMPLATE_CONF_SUCCESS_SAVE, [tmpl.name()] ));
 					_l('../oils_rpt.xhtml');
 				}
 			}

Modified: trunk/Open-ILS/web/reports/xul/transforms.js
===================================================================
--- trunk/Open-ILS/web/reports/xul/transforms.js	2009-03-06 02:09:00 UTC (rev 12435)
+++ trunk/Open-ILS/web/reports/xul/transforms.js	2009-03-06 13:41:49 UTC (rev 12436)
@@ -91,7 +91,7 @@
 		label : rpt_strings.TRANSFORMS_UPPER
 	},
 
-	firt5 : {
+	first5 : {
 		datatype : [ OILS_RPT_DTYPE_STRING ],
 		label : rpt_strings.TRANSFORMS_FIRST5
 	},



More information about the open-ils-commits mailing list