[open-ils-commits] r17630 - in trunk/Open-ILS/web/js/dojo/openils: . widget (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Sep 13 11:48:44 EDT 2010
Author: miker
Date: 2010-09-13 11:48:41 -0400 (Mon, 13 Sep 2010)
New Revision: 17630
Modified:
trunk/Open-ILS/web/js/dojo/openils/I18N.js
trunk/Open-ILS/web/js/dojo/openils/widget/Searcher.js
Log:
have fielder cache some frequently used data
Modified: trunk/Open-ILS/web/js/dojo/openils/I18N.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/I18N.js 2010-09-13 15:17:44 UTC (rev 17629)
+++ trunk/Open-ILS/web/js/dojo/openils/I18N.js 2010-09-13 15:48:41 UTC (rev 17630)
@@ -25,7 +25,7 @@
dojo.declare('openils.I18N', null, {});
- openils.I18N.BaseLocales = fieldmapper.standardRequest( [ 'open-ils.fielder', 'open-ils.fielder.i18n_l.atomic'], [ { query : { code : { '!=' : null } } } ] );
+ openils.I18N.BaseLocales = fieldmapper.standardRequest( [ 'open-ils.fielder', 'open-ils.fielder.i18n_l.atomic'], [ { cache : 1, query : { code : { '!=' : null } } } ] );
openils.I18N.localeStore = new dojo.data.ItemFileWriteStore( { data : {identifier : 'locale', label : 'label', items : [] } } );
openils.I18N.BaseLocales = openils.I18N.BaseLocales.sort(
function(a, b) {
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/Searcher.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/Searcher.js 2010-09-13 15:17:44 UTC (rev 17629)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/Searcher.js 2010-09-13 15:48:41 UTC (rev 17630)
@@ -274,7 +274,7 @@
var fielder_result = fieldmapper.standardRequest(
[ 'open-ils.fielder', 'open-ils.fielder.'+c.classname+'.atomic'],
- [ { query : q } ]
+ [ { cache : 1, query : q } ]
);
var sorted_fielder_result = fielder_result.sort( function(a,b) {
More information about the open-ils-commits
mailing list