var optInSettings;
var allCardsTemplate;
var uEditCloneCopyAddr; // if true, copy addrs on clone instead of link
+var homeOuTypes = {};
var dupeUsrname = false;
var dupeBarcode = false;
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'])
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();