Skip to content

Commit

Permalink
Updated dialog library. Fixes elementor#3668
Browse files Browse the repository at this point in the history
  • Loading branch information
kobizz committed Mar 6, 2018
1 parent a1c3c8e commit a2809f7
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
14 changes: 12 additions & 2 deletions assets/lib/dialog/dialog.js
@@ -1,5 +1,5 @@
/*!
* Dialogs Manager v4.1.0
* Dialogs Manager v4.2.1
* https://github.com/kobizz/dialogs-manager
*
* Copyright Kobi Zaltzberg
Expand Down Expand Up @@ -389,6 +389,11 @@
return self;
};

this.isVisible = function() {

return elements.widget.is(':visible');
};

this.on = function (eventName, callback) {

if ('object' === typeof eventName) {
Expand Down Expand Up @@ -439,6 +444,8 @@

this.show = function () {

clearTimeout(hideTimeOut);

elements.widget.appendTo(elements.container).hide();

callEffect('show', arguments);
Expand Down Expand Up @@ -817,4 +824,7 @@

// Exporting the DialogsManager variable to global
global.DialogsManager = DialogsManager;
})(typeof require === 'function' ? require('jquery') : jQuery, typeof module !== 'undefined' ? module.exports : window);
})(
typeof jQuery !== 'undefined' ? jQuery : typeof require === 'function' && require('jquery'),
typeof module !== 'undefined' ? module.exports : window
);
6 changes: 3 additions & 3 deletions assets/lib/dialog/dialog.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion includes/admin.php
Expand Up @@ -34,7 +34,7 @@ public function enqueue_scripts() {
[
'jquery-ui-position',
],
'4.1.0',
'4.2.1',
true
);

Expand Down
2 changes: 1 addition & 1 deletion includes/editor.php
Expand Up @@ -428,7 +428,7 @@ public function enqueue_scripts() {
[
'jquery-ui-position',
],
'4.1.0',
'4.2.1',
true
);

Expand Down
2 changes: 1 addition & 1 deletion includes/frontend.php
Expand Up @@ -303,7 +303,7 @@ public function register_scripts() {
[
'jquery-ui-position',
],
'4.1.0',
'4.2.1',
true
);

Expand Down

0 comments on commit a2809f7

Please sign in to comment.