mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 03:12:39 +03:00
Return the message modal selector for better DOM handling if needed
This commit is contained in:
parent
c9f6d2a7f5
commit
6743da7043
1 changed files with 6 additions and 2 deletions
|
@ -27,10 +27,12 @@ window.App.Utils.Message = (function () {
|
|||
* @param {String} message The message of the dialog.
|
||||
* @param {Array} [buttons] Contains the dialog buttons along with their functions.
|
||||
* @param {Boolean} [isDismissible] If true, the button will show the close X in the header and close with the press of the Escape button.
|
||||
*
|
||||
* @return {jQuery|null} Return the #message-modal selector or null if the arguments are invalid.
|
||||
*/
|
||||
function show(title, message, buttons = null, isDismissible = true) {
|
||||
if (!title || !message) {
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!buttons) {
|
||||
|
@ -105,7 +107,9 @@ window.App.Utils.Message = (function () {
|
|||
|
||||
messageModal.show();
|
||||
|
||||
$('#message-modal').css('z-index', '99999').next().css('z-index', '9999');
|
||||
$messageModal.css('z-index', '99999').next().css('z-index', '9999');
|
||||
|
||||
return $messageModal;
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue