[open-ils-commits] [GIT] Evergreen ILS branch master updated. 8e8c2a8e4f7866ed6fd9815266f26f1b806c63fb
Evergreen Git
git at git.evergreen-ils.org
Thu Feb 19 17:28:02 EST 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 8e8c2a8e4f7866ed6fd9815266f26f1b806c63fb (commit)
from 4b30fb84f74e46b9661704f18a89cb920126241e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8e8c2a8e4f7866ed6fd9815266f26f1b806c63fb
Author: Galen Charlton <gmc at esilibrary.com>
Date: Mon Oct 6 20:56:13 2014 -0700
LP#1378169: make context OU selector on funds page sticky
This patch uses local storage to persist the selected value of the
context OU selector on the funds page. This is meant to ease
workflows where an acquisitions administrator needs to frequently
transfer money between funds that are attached to children of
a system-level OU. Specifically, rather than defaulting to
the user's workstation OU, the selector will default to the
OU selected the last time the funds page was opened.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Signed-off-by: Kathy Lussier <klussier at masslnc.org>
Signed-off-by: Mike Rylander <mrylander at gmail.com>
diff --git a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js
index 09a47d5..915f781 100644
--- a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js
+++ b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js
@@ -19,6 +19,10 @@ dojo.require('fieldmapper.OrgUtils');
dojo.requireLocalization('openils.acq', 'acq');
var localeStrings = dojo.i18n.getLocalization('openils.acq', 'acq');
+dojo.require('openils.XUL');
+var xulStorage = openils.XUL.localStorage();
+var storekey = 'eg.acq.fund.list.context_ou_selector';
+
var contextOrg;
var rolloverResponses;
var rolloverMode = false;
@@ -35,7 +39,7 @@ var adminPermOrgs = [];
var cachedFunds = [];
function initPage() {
- contextOrg = openils.User.user.ws_ou();
+ contextOrg = xulStorage.getItem(storekey) || openils.User.user.ws_ou();
/* Reveal controls for rollover without money if org units say ok.
* Actual ability to do the operation is controlled in the database, of
@@ -56,6 +60,7 @@ function initPage() {
dojo.connect(contextOrgSelector, 'onChange',
function() {
contextOrg = this.attr('value');
+ xulStorage.setItem(storekey, contextOrg);
dojo.byId('oils-acq-rollover-ctxt-org').innerHTML =
fieldmapper.aou.findOrgUnit(contextOrg).shortname();
rolloverMode = false;
-----------------------------------------------------------------------
Summary of changes:
.../web/js/ui/default/acq/financial/list_funds.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list