mirror of
https://github.com/wekan/wekan.git
synced 2025-12-23 19:00:12 +01:00
Prettier & eslint project style update
This commit is contained in:
parent
a0a482aa8e
commit
3eb4d2c341
116 changed files with 6216 additions and 5240 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const closedValue = null;
|
||||
|
||||
window.Modal = new class {
|
||||
window.Modal = new (class {
|
||||
constructor() {
|
||||
this._currentModal = new ReactiveVar(closedValue);
|
||||
this._onCloseGoTo = '';
|
||||
|
|
@ -21,7 +21,7 @@ window.Modal = new class {
|
|||
return this.getTemplateName() !== closedValue;
|
||||
}
|
||||
|
||||
isWide(){
|
||||
isWide() {
|
||||
return this._isWideModal;
|
||||
}
|
||||
|
||||
|
|
@ -32,23 +32,23 @@ window.Modal = new class {
|
|||
}
|
||||
}
|
||||
|
||||
openWide(modalName, { header = '', onCloseGoTo = ''} = {}) {
|
||||
openWide(modalName, { header = '', onCloseGoTo = '' } = {}) {
|
||||
this._currentModal.set({ header, modalName });
|
||||
this._onCloseGoTo = onCloseGoTo;
|
||||
this._isWideModal = true;
|
||||
}
|
||||
|
||||
open(modalName, { header = '', onCloseGoTo = ''} = {}) {
|
||||
open(modalName, { header = '', onCloseGoTo = '' } = {}) {
|
||||
this._currentModal.set({ header, modalName });
|
||||
this._onCloseGoTo = onCloseGoTo;
|
||||
|
||||
}
|
||||
}();
|
||||
})();
|
||||
|
||||
Blaze.registerHelper('Modal', Modal);
|
||||
|
||||
EscapeActions.register('modalWindow',
|
||||
EscapeActions.register(
|
||||
'modalWindow',
|
||||
() => Modal.close(),
|
||||
() => Modal.isOpen(),
|
||||
{ noClickEscapeOn: '.modal-container' }
|
||||
{ noClickEscapeOn: '.modal-container' },
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue