[open-ils-commits] r16366 - in trunk/Open-ILS/xul/staff_client: chrome/content/util server/admin (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Sat May 1 01:42:45 EDT 2010


Author: phasefx
Date: 2010-05-01 01:42:41 -0400 (Sat, 01 May 2010)
New Revision: 16366

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js
   trunk/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js
Log:
replace direct use of dojo.date in these xul interfaces with util.date wrapper

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js	2010-04-30 21:17:57 UTC (rev 16365)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/list.js	2010-05-01 05:42:41 UTC (rev 16366)
@@ -1662,10 +1662,9 @@
                     def.render = function(my) { return my[hint][my_field.name](); }
                 }
                 if (my_field.datatype == 'timestamp') {
-                    dojo.require('dojo.date.locale');
-                    dojo.require('dojo.date.stamp');
+                    JSAN.use('util.date');
                     def.render = function(my) {
-                        return dojo.date.locale.format( dojo.date.stamp.fromISOString(my[hint][my_field.name]()) );
+                        return util.date.formatted_date( my[hint][my_field.name](), '%{localized}' );
                     }
                 }
                 if (my_field.datatype == 'org_unit') {

Modified: trunk/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js	2010-04-30 21:17:57 UTC (rev 16365)
+++ trunk/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js	2010-05-01 05:42:41 UTC (rev 16366)
@@ -92,7 +92,8 @@
                     },
                     {
                         'id' : 'last_billing_activity', 'label' : 'Last Billing Activity', 'sort_type' : 'date', 'render' : function(my) { 
-                            return dojo.date.locale.format( dojo.date.stamp.fromISOString(my.last_billing_activity) );
+                            JSAN.use('util.date');
+                            return util.date.formatted_date( my.last_billing_activity, '%{localized}' );
                         }
                     }
                 ]),



More information about the open-ils-commits mailing list