[open-ils-commits] r10122 - in
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb:
public/oils/media/ui_js/oils/default/common
templates/oils/default/common
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 24 17:21:06 EDT 2008
Author: erickson
Date: 2008-07-24 17:20:56 -0400 (Thu, 24 Jul 2008)
New Revision: 10122
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
Log:
added receive time to the LID display
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js 2008-07-24 21:00:39 UTC (rev 10121)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js 2008-07-24 21:20:56 UTC (rev 10122)
@@ -4,7 +4,10 @@
dojo.require('dijit.form.FilteringSelect');
dojo.require('dijit.form.Button');
dojo.require('dojox.grid.Grid');
+dojo.require('dojo.date.locale');
+dojo.require('dojo.date.stamp');
+
dojo.require("openils.User");
dojo.require("openils.acq.Fund");
dojo.require("openils.acq.Lineitem");
@@ -69,6 +72,12 @@
if(!data || !data.provider) return;
return openils.acq.Provider.retrieve(data.provider).code();
},
+ getRecvTime : function(rowIndex) {
+ var data = JUBGrid.jubDetailGrid.model.getRow(rowIndex);
+ if (!(data && data.recv_time)) return '';
+ var date = dojo.date.stamp.fromISOString(data.recv_time);
+ return dojo.date.locale.format(date, {formatLength:'medium'});
+ },
getCopyLocation : function(rowIndex) {
var data = JUBGrid.jubDetailGrid.model.getRow(rowIndex);
if(!data || !data.location) return '';
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-07-24 21:00:39 UTC (rev 10121)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-07-24 21:20:56 UTC (rev 10122)
@@ -103,6 +103,9 @@
editor:openils.editors.CopyLocationSelectEditor,
get:JUBGrid.getCopyLocation
},
+ {name:"Receive Time", width:'auto',
+ get:JUBGrid.getRecvTime
+ },
]]
}];
More information about the open-ils-commits
mailing list