awa.popup Class
/var/www/azaleahealth.com/branches/docs/source_repo/awa/resources/apps/js/awa/popup.js:11
This static object was used to control all of the popups active in the app. Some method should still be used (error, message, confirm) but for controlling individual popups, please access them directly as view objects;
Item Index
Methods
- ajaxError
- close deprecated
- close_dynamic deprecated
- confirm
- error
- error
- error_report
- insert_overlay
- is_open
- message
- readonly
- remove_overlay
- reposition deprecated
- restore_draggable deprecated
- text_prompt
- three_button
Methods
ajaxError
-
jqXHR -
textStatus
Report a HTTP request error.
Parameters:
-
jqXHRJqXHRXHR Object
-
textStatusStringReadable status
Returns:
close
-
id
Parameters:
-
idStringThe popup's
idReturns:
Undefined:
close_dynamic
-
identifier
Parameters:
-
identifierStringThe popup's identifier
Returns:
confirm
-
message -
confirm -
cancel -
options
Parameters:
-
messageStringThe message to display
-
confirmFunctionFunction to call if the user selects Yes
-
cancelFunctionFunction to call if the user selects No
-
optionsObjectVarious other parameters
Returns:
error
-
message -
options
Parameters:
-
messageStringThe message to display
-
optionsObejctVarious options
Returns:
error
-
message -
options
Parameters:
-
messageStringThe message to display
-
optionsObejctVarious options
Returns:
error_report
-
message -
callback,
Parameters:
-
messageStringThe message to display
-
callback,FunctionFunction to call if the user chooses the report option. you will be passed in the optional user message.
Returns:
insert_overlay
-
id
Parameters:
-
idStringThe
id of the popup or an id for the overlayReturns:
Undefined:
is_open
-
identifier
Parameters:
-
identifierStringThe popup's identifier
Returns:
true or false
message
-
message -
[options]
Parameters:
-
messageStringThe message to display
-
[options]Object optionalVarious options
-
[isError]Boolean optionalIndicates popup should be an error
-
[isWarning]Boolean optionalIndicates popup should be a warning
-
[title]String optionalText placed in title of popup
-
[identifier]String optionalIdentifier assigned to popup dom element
-
Returns:
readonly
()
Undefined
Display a read only mode warning message.
Returns:
remove_overlay
-
id
Parameters:
-
idStringThe id of the overlay passed into popup.insert_overlay()
Returns:
reposition
-
identifier
Parameters:
-
identifierStringThe popup's identifier
Returns:
restore_draggable
-
id
Parameters:
-
idStringThe popup
idReturns:
Undefined:
text_prompt
-
callback -
message
Parameters:
-
callbackFunctionFunction to call if the user selects Yes
-
messageStringThe message to display