[open-ils-commits] [GIT] Evergreen ILS branch rel_2_1 updated. 288e7af6238d1b7bae0200dd7596431b01ce702c
Evergreen Git
git at git.evergreen-ils.org
Fri Jun 10 11:49:56 EDT 2011
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, rel_2_1 has been updated
via 288e7af6238d1b7bae0200dd7596431b01ce702c (commit)
from eaa256ec5320869616367c9d8d45847ca64cd449 (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 288e7af6238d1b7bae0200dd7596431b01ce702c
Author: Thomas Berezansky <tsbere at mvlc.org>
Date: Fri Jun 10 09:22:56 2011 -0400
Mark invalid home ous as such in patron editor
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Bill Erickson <berick at esilibrary.com>
diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js
index c0afaa6..12ee21e 100644
--- a/Open-ILS/web/js/ui/default/actor/user/register.js
+++ b/Open-ILS/web/js/ui/default/actor/user/register.js
@@ -45,6 +45,7 @@ var stageUser;
var optInSettings;
var allCardsTemplate;
var uEditCloneCopyAddr; // if true, copy addrs on clone instead of link
+var homeOuTypes = {};
var dupeUsrname = false;
var dupeBarcode = false;
@@ -197,6 +198,12 @@ function load() {
fieldDoc[doc.fm_class()][doc.field()] = doc;
}
+ list = pcrud.search('aout', {can_have_users: 'true'});
+ for(var i in list) {
+ var type = list[i];
+ homeOuTypes[type.id()] = true;
+ }
+
tbody = dojo.byId('uedit-tbody');
if(orgSettings['ui.patron.edit.default_suggested'])
@@ -1065,6 +1072,15 @@ function attachWidgetEvents(fmcls, fmfield, widget) {
return;
case 'home_ou':
+ widget.widget.isValid = function() {
+ if(this.item) {
+ if(homeOuTypes[this.store.getValue(this.item, 'ou_type')]) {
+ return true;
+ }
+ return false;
+ }
+ return true;
+ };
dojo.connect(widget.widget, 'onChange',
function(newVal) {
checkClaimsReturnCountPerm();
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/actor/user/register.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list