[open-ils-commits] r12074 - trunk/Open-ILS/web/templates/default/conify/global/acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Feb 4 23:48:38 EST 2009
Author: erickson
Date: 2009-02-04 23:48:35 -0500 (Wed, 04 Feb 2009)
New Revision: 12074
Modified:
trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
Log:
cleaned up to match latest autogrid
Modified: trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2 2009-02-05 04:45:32 UTC (rev 12073)
+++ trunk/Open-ILS/web/templates/default/conify/global/acq/exchange_rate.tt2 2009-02-05 04:48:35 UTC (rev 12074)
@@ -5,37 +5,27 @@
<h1>Exchange Rates</h1><br/>
<script>
- dojo.require('dojo.data.ItemFileWriteStore');
- dojo.require('openils.widget.EditDialog');
dojo.require('openils.widget.AutoGrid');
dojo.require('openils.PermaCrud');
dojo.require('openils.Util');
- dojo.require('dojox.grid.DataGrid');
-
- var cache = {};
function renderGrid() {
- erGrid.storeItemObjectMapper = function(item) { return cache[item.id]; };
var pcrud = new openils.PermaCrud();
pcrud.retrieveAll('acqexr',
{ async : true,
- oncomplete : function(r) {
- var list = openils.Util.readResponse(r);
- erGrid.fmObjectList = list;
- for(var i in list) {
- cache[list[i].id()] = list[i];
- erGrid.store.newItem(list[i].toStoreItem());
- }
+ streaming : true,
+ onresponse : function(r) {
+ var item = openils.Util.readResponse(r);
+ erGrid.store.newItem(item.toStoreItem());
erGrid.update();
- }
+ }
}
);
}
openils.Util.addOnLoad(renderGrid);
</script>
-
<div dojoType="dijit.layout.ContentPane" layoutAlign="top" style='height:600px;'>
- <table jsId="erGrid" dojoType="openils.widget.AutoGrid" class='editable-auto-grid'
- fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']"
+ <table jsId="erGrid" dojoType="openils.widget.AutoGrid"
+ fieldOrder="['id', 'from_currency', 'to_currency', 'ratio']"
query="{id: '*'}" rowSelector='20px' fmClass='acqexr' editOnEnter='true'>
</table>
</div>
More information about the open-ils-commits
mailing list