[open-ils-commits] r11191 - trunk/Open-ILS/web/js/dojo/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Nov 14 15:02:38 EST 2008
Author: erickson
Date: 2008-11-14 15:02:35 -0500 (Fri, 14 Nov 2008)
New Revision: 11191
Modified:
trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
provide option for running callback after perm selector has loaded
Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js 2008-11-14 20:02:05 UTC (rev 11190)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js 2008-11-14 20:02:35 UTC (rev 11191)
@@ -233,7 +233,7 @@
* @param perm The permission to check
* @param selector The pre-created dijit.form.FilteringSelect object.
*/
- buildPermOrgSelector : function(perm, selector, selectedOrg) {
+ buildPermOrgSelector : function(perm, selector, selectedOrg, onload) {
var _u = this;
dojo.require('dojo.data.ItemFileReadStore');
@@ -245,6 +245,7 @@
selector.setValue(selectedOrg);
else
selector.setValue(_u.user.ws_ou());
+ if(onload) onload();
}
function buildTreePicker(orgList) {
More information about the open-ils-commits
mailing list