From aa1308b30afcf3c814cb13f2f8cb24260dad1708 Mon Sep 17 00:00:00 2001 From: miker Date: Mon, 13 Sep 2010 15:48:41 +0000 Subject: [PATCH] have fielder cache some frequently used data git-svn-id: svn://svn.open-ils.org/ILS/trunk@17630 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/I18N.js | 2 +- Open-ILS/web/js/dojo/openils/widget/Searcher.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/I18N.js b/Open-ILS/web/js/dojo/openils/I18N.js index 5d3193a79..72f1dee28 100644 --- a/Open-ILS/web/js/dojo/openils/I18N.js +++ b/Open-ILS/web/js/dojo/openils/I18N.js @@ -25,7 +25,7 @@ if(!dojo._hasResource["openils.I18N"]) { 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) { diff --git a/Open-ILS/web/js/dojo/openils/widget/Searcher.js b/Open-ILS/web/js/dojo/openils/widget/Searcher.js index d2fa58b8a..130b7dcdf 100644 --- a/Open-ILS/web/js/dojo/openils/widget/Searcher.js +++ b/Open-ILS/web/js/dojo/openils/widget/Searcher.js @@ -274,7 +274,7 @@ if(!dojo._hasResource["openils.widget.Searcher"]) { 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) { -- 2.11.0