UserPermissionsView Class
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/system/UserPermissionsView.js:257
Item Index
Methods
didRender
()
Undefined
Post rendering tasks.
Returns:
initialize
-
options
Parameters:
-
optionsObjectArgument bag
Returns:
onApplyUserRole
-
evt
Called when the user clicks the Apply button for the user role.
Parameters:
-
evtjQuery.EventEvent object
Returns:
onPermissionChanged
()
Undefined
Called when the user changes a permission.
When the user manually updates a permission we must clear out any existing role because this action essentially "overrides" the permissions that were set for that role.
Why? If a user later changes the permissions associated with that role we do not want those changes propagated down to this user.
Returns:
onProviderAccess
-
evt
Called when the user clicks the provider access checkbox. Toggles them all on/off.
Parameters:
-
evtjQuery.EventEvent object
Returns:
postRenderEdit
()
Undefined
Post rendering tasks for edit view.
Returns:
reload
()
Undefined
Reload the view model data.
Returns:
render
()
Undefined
Returns:
save
-
callback
Saves the permissions (edit view)
Parameters:
-
callbackFunctionCalled on succesful save
Returns:
setUserID
-
usr_id
Needed for new users. after they are saved, the 0 id needs to be changed.
Parameters:
-
usr_idIntegerUser ID#