|
132 |
this._grid = new umc.widgets.Grid({ |
132 |
this._grid = new umc.widgets.Grid({ |
133 |
actions: actions, |
133 |
actions: actions, |
134 |
columns: columns, |
134 |
columns: columns, |
135 |
moduleStore: this.moduleStore, |
135 |
moduleStore: this.moduleStore |
136 |
// initial query |
|
|
137 |
query: { 'class': 'None', pattern: '' } |
138 |
}); |
136 |
}); |
139 |
|
137 |
|
140 |
// add the grid to the title pane |
138 |
// add the grid to the title pane |
|
146 |
// |
144 |
// |
147 |
|
145 |
|
148 |
// add remaining elements of the search form |
146 |
// add remaining elements of the search form |
|
|
147 |
var deferred = new dojo.Deferred(); |
149 |
var widgets = [{ |
148 |
var widgets = [{ |
150 |
type: 'ComboBox', |
149 |
type: 'ComboBox', |
151 |
name: 'school', |
150 |
name: 'school', |
|
165 |
], |
164 |
], |
166 |
dynamicValues: 'schoolusers/groups', |
165 |
dynamicValues: 'schoolusers/groups', |
167 |
umcpCommand: dojo.hitch( this, 'umcpCommand' ), |
166 |
umcpCommand: dojo.hitch( this, 'umcpCommand' ), |
168 |
depends: 'school' |
167 |
depends: 'school', |
|
|
168 |
onValuesLoaded: function() { |
169 |
deferred.resolve(); |
170 |
} |
169 |
}, { |
171 |
}, { |
170 |
type: 'TextBox', |
172 |
type: 'TextBox', |
171 |
name: 'pattern', |
173 |
name: 'pattern', |
|
197 |
this.standby( false ); |
199 |
this.standby( false ); |
198 |
// transparent standby mode |
200 |
// transparent standby mode |
199 |
this.standbyOpacity = 0.75; |
201 |
this.standbyOpacity = 0.75; |
200 |
} ) |
202 |
} ) |
201 |
}); |
203 |
}); |
202 |
|
204 |
|
203 |
// add search form to the title pane |
205 |
// add search form to the title pane |
|
209 |
} ); |
211 |
} ); |
210 |
|
212 |
|
211 |
this._searchPage.startup(); |
213 |
this._searchPage.startup(); |
|
|
214 |
|
215 |
umc.tools.ucr(['directory/manager/web/modules/users/user/search/autosearch', 'directory/manager/web/modules/autosearch']).then(dojo.hitch(this, function(ucr) { |
216 |
var autoSearch = ucr['directory/manager/web/modules/users/user/search/autosearch'] || |
217 |
ucr['directory/manager/web/modules/autosearch']; |
218 |
if (umc.tools.isTrue(autoSearch)) { |
219 |
deferred.then(dojo.hitch(this, function() { |
220 |
this._grid.filter(this._searchForm.gatherFormValues()); |
221 |
})); |
222 |
} |
223 |
})); |
212 |
}, |
224 |
}, |
213 |
|
225 |
|
214 |
_resetPasswords: function( ids, items ) { |
226 |
_resetPasswords: function( ids, items ) { |