[open-ils-commits] r11784 - in trunk/Open-ILS/web/js: dojo/fieldmapper ui/default/acq/financial ui/default/acq/picklist ui/default/acq/po ui/default/conify/global/config ui/default/conify/global/permission
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 9 10:37:44 EST 2009
Author: erickson
Date: 2009-01-09 10:37:42 -0500 (Fri, 09 Jan 2009)
New Revision: 11784
Modified:
trunk/Open-ILS/web/js/dojo/fieldmapper/dojoData.js
trunk/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js
trunk/Open-ILS/web/js/ui/default/acq/financial/list_funding_sources.js
trunk/Open-ILS/web/js/ui/default/acq/financial/list_funds.js
trunk/Open-ILS/web/js/ui/default/acq/financial/list_providers.js
trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
trunk/Open-ILS/web/js/ui/default/acq/po/search.js
trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js
trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js
trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js
Log:
for consistency, change itemToStoreData to toStoreItem
Modified: trunk/Open-ILS/web/js/dojo/fieldmapper/dojoData.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/fieldmapper/dojoData.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/dojo/fieldmapper/dojoData.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -44,7 +44,7 @@
return { label : label, identifier : params.identifier, items : [] };
}
- function _itemToStoreData(fmObj, params) {
+ function _toStoreItem(fmObj, params) {
if (!params) params = {};
return fmObj.toHash(true, params.virtualFields);
}
@@ -94,8 +94,8 @@
for (var i in fmclasses) fieldmapper[i].prototype.fromStoreItem = _fromStoreItem;
for (var i in fmclasses) fieldmapper[i].toStoreData = _toStoreData;
- for (var i in fmclasses) fieldmapper[i].itemToStoreData = _itemToStoreData;
- for (var i in fmclasses) fieldmapper[i].prototype.itemToStoreData = function ( args ) { return _itemToStoreData(this, args) };
+ for (var i in fmclasses) fieldmapper[i].toStoreItem = _toStoreItem;
+ for (var i in fmclasses) fieldmapper[i].prototype.toStoreItem = function ( args ) { return _toStoreItem(this, args) };
for (var i in fmclasses) fieldmapper[i].initStoreData = _initStoreData;
fieldmapper.aou.prototype._ignore_fields = ['children'];
Modified: trunk/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/acq/financial/list_currency_types.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -21,7 +21,7 @@
onresponse : function(r){
if(ct = openils.Util.readResponse(r)) {
openils.acq.CurrencyType.cache[ct.code()] = ct;
- store.newItem(acqct.itemToStoreData(ct));
+ store.newItem(acqct.toStoreItem(ct));
}
}
}
Modified: trunk/Open-ILS/web/js/ui/default/acq/financial/list_funding_sources.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/financial/list_funding_sources.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/acq/financial/list_funding_sources.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -34,7 +34,7 @@
onresponse : function(r) { /* request object */
if(fs = openils.Util.readResponse(r)) {
openils.acq.FundingSource.cache[fs.id()] = fs;
- store.newItem(acqfs.itemToStoreData(fs));
+ store.newItem(acqfs.toStoreItem(fs));
}
}
}
Modified: trunk/Open-ILS/web/js/ui/default/acq/financial/list_funds.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/financial/list_funds.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/acq/financial/list_funds.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -37,7 +37,7 @@
onresponse : function(r) {
if(lf = openils.Util.readResponse(r)) {
openils.acq.Fund.cache[lf.id()] = lf;
- store.newItem(acqf.itemToStoreData(lf));
+ store.newItem(acqf.toStoreItem(lf));
var year = lf.year();
if(!(year in yearsAdded)) {
yearStore.items.push({year:year});
Modified: trunk/Open-ILS/web/js/ui/default/acq/financial/list_providers.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/financial/list_providers.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/acq/financial/list_providers.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -28,7 +28,7 @@
onresponse : function(r) {
if( lp = openils.Util.readResponse(r)) {
openils.acq.Provider.cache[lp.id()] = lp;
- store.newItem(acqpro.itemToStoreData(lp));
+ store.newItem(acqpro.toStoreItem(lp));
}
}
}
Modified: trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -31,7 +31,7 @@
onresponse : function(r) {
if(pl = openils.Util.readResponse(r)) {
plCache[pl.id()] = pl;
- store.newItem(acqpl.itemToStoreData(pl));
+ store.newItem(acqpl.toStoreItem(pl));
}
}
}
Modified: trunk/Open-ILS/web/js/ui/default/acq/po/search.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/po/search.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/acq/po/search.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -56,7 +56,7 @@
onresponse : function(r) {
if(po = openils.Util.readResponse(r)) {
openils.acq.PO.cache[po.id()] = po;
- store.newItem(acqpo.itemToStoreData(po));
+ store.newItem(acqpo.toStoreItem(po));
}
dojo.style('po-grid', 'visibility', 'visible');
}
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 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/circ_modifier.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -18,7 +18,7 @@
params: [openils.User.authtoken, {code:{'!=':null}}],
onresponse: function (r) {
if(obj = openils.Util.readResponse(r)) {
- store.newItem(ccm.itemToStoreData(obj));
+ store.newItem(ccm.toStoreItem(obj));
cmCache[obj.code()] = obj;
}
}
@@ -94,7 +94,7 @@
params: [openils.User.authtoken, cmod],
oncomplete: function(r) {
if(cm = openils.Util.readResponse(r))
- cmGrid.store.newItem(ccm.itemToStoreData(cm));
+ cmGrid.store.newItem(ccm.toStoreItem(cm));
}
}
);
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/hold_matrix_matchpoint.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -129,7 +129,7 @@
params: [openils.User.authtoken, {id:{'!=':null}}],
onresponse: function (r) {
if(obj = openils.Util.readResponse(r)) {
- store.newItem(chmm.itemToStoreData(obj));
+ store.newItem(chmm.toStoreItem(obj));
// cmCache[obj.code()] = obj;
}
}
@@ -163,4 +163,4 @@
);
}
-openils.Util.addOnLoad(init);
\ No newline at end of file
+openils.Util.addOnLoad(init);
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/standing_penalty.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -18,7 +18,7 @@
params: [openils.User.authtoken, {id:{'!=':null}}, {order_by:{csp:'id'}}],
onresponse: function(r) {
if(sp = openils.Util.readResponse(r))
- store.newItem(csp.itemToStoreData(sp));
+ store.newItem(csp.toStoreItem(sp));
spCache[sp.id()] = sp;
}
}
@@ -39,7 +39,7 @@
params: [openils.User.authtoken, penalty],
oncomplete: function(r) {
if(obj = openils.Util.readResponse(r))
- spGrid.store.newItem(csp.itemToStoreData(obj));
+ spGrid.store.newItem(csp.toStoreItem(obj));
}
}
);
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js 2009-01-09 15:16:21 UTC (rev 11783)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/permission/grp_penalty_threshold.js 2009-01-09 15:37:42 UTC (rev 11784)
@@ -20,7 +20,7 @@
params: [openils.User.authtoken, GPT.contextOrg],
onresponse: function (r) {
if(obj = openils.Util.readResponse(r, false, true)) {
- store.newItem(pgpt.itemToStoreData(obj));
+ store.newItem(pgpt.toStoreItem(obj));
}
}
}
@@ -52,7 +52,7 @@
_onCreateComplete : function(r) {
if(threshold = openils.Util.readResponse(r)) {
- gptGrid.store.newItem(pgpt.itemToStoreData(threshold));
+ gptGrid.store.newItem(pgpt.toStoreItem(threshold));
}
},
More information about the open-ils-commits
mailing list