From 043259bc85850abf31f590d88dc7b8c890e9bfaf Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 31 Aug 2010 21:22:44 +0000 Subject: [PATCH] allow pass-thru of filteringtreeselect disableQuery as constructor param git-svn-id: svn://svn.open-ils.org/ILS/trunk@17417 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 6cfe1cbba..aeaaf0153 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -44,6 +44,8 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { * dataLoader : Bypass the default PermaCrud linked data fetcher and use this function instead. * Function arguments are (link class name, search filter, callback) * The fetched objects should be passed to the callback as an array + * disableQuery : dojo.data query passed to FilteringTreeSelect-based widgets to disable + * (but leave visible) certain options. */ constructor : function(args) { for(var k in args) @@ -560,6 +562,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { _buildPermGrpSelector : function() { dojo.require('openils.widget.FilteringTreeSelect'); this.widget = new openils.widget.FilteringTreeSelect(this.dijitArgs, this.parentNode); + this.widget.disableQuery = this.disableQuery; this.widget.searchAttr = 'name'; if(this.cache.permGrpTree) { -- 2.11.0