Fix shortcut dialog toggling

This commit is contained in:
Ilya Daynatovich
2016-10-17 16:35:47 +03:00
parent 367c9401eb
commit d06aef511f
2 changed files with 19 additions and 5 deletions

View File

@@ -373,6 +373,15 @@ var messageHandler = {
enablePopups: function (enable) {
popupEnabled = enable;
},
/**
* Returns true if dialog is opened
* false otherwise
* @returns {boolean} isOpened
*/
isDialogOpened: function () {
return !!$.prompt.getCurrentStateName();
}
};