[open-ils-commits] r11605 - trunk/Open-ILS/web/js/ui/default/conify/global/config
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 17 13:36:29 EST 2008
Author: erickson
Date: 2008-12-17 13:36:26 -0500 (Wed, 17 Dec 2008)
New Revision: 11605
Modified:
trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
Log:
keep the original objects around for deletion purposes
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js 2008-12-17 17:34:39 UTC (rev 11604)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js 2008-12-17 18:36:26 UTC (rev 11605)
@@ -3,6 +3,8 @@
dojo.require('dijit.form.CheckBox');
dojo.require('dijit.form.FilteringSelect');
+var cmCache = {};
+
function buildCMGrid() {
var store = new dojo.data.ItemFileWriteStore({data:ccm.initStoreData('code', {identifier:'code'})})
cmGrid.setStore(store);
@@ -11,14 +13,14 @@
fieldmapper.standardRequest(
['open-ils.permacrud', 'open-ils.permacrud.search.ccm'],
{ async: true,
- params: [openils.User.authtoken, {code:{'!=':null}}],
- onresponse: function (r) {
- if(obj = openils.Util.readResponse(r)) {
- store.newItem(ccm.itemToStoreData(obj));
-
- }
- }
- }
+ params: [openils.User.authtoken, {code:{'!=':null}}],
+ onresponse: function (r) {
+ if(obj = openils.Util.readResponse(r)) {
+ store.newItem(ccm.itemToStoreData(obj));
+ cmCache[obj.code()] = obj;
+ }
+ }
+ }
);
}
More information about the open-ils-commits
mailing list