From: phasefx Date: Sat, 1 May 2010 05:42:41 +0000 (+0000) Subject: replace direct use of dojo.date in these xul interfaces with util.date wrapper X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b3e8c6e7d86a760fddf3e478867e5fd33e9a817c;p=evergreen%2Fbjwebb.git replace direct use of dojo.date in these xul interfaces with util.date wrapper git-svn-id: svn://svn.open-ils.org/ILS/trunk@16366 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index e7a523299..808682797 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -1662,10 +1662,9 @@ util.list.prototype = { 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') { diff --git a/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js b/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js index 10f1033f7..5a0f15f87 100644 --- a/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js +++ b/Open-ILS/xul/staff_client/server/admin/patrons_due_refunds.js @@ -92,7 +92,8 @@ function init_list() { }, { '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}' ); } } ]),