[DE PE mobile] Fix bug 50773

This commit is contained in:
JuliaSvinareva 2021-06-28 15:52:28 +03:00
parent 1fb891a772
commit cc850adfcc
2 changed files with 46 additions and 42 deletions

View file

@ -56,9 +56,9 @@ class AddTableController extends Component {
api.put_Table(parseInt(size[0]), parseInt(size[1]), type.toString()); api.put_Table(parseInt(size[0]), parseInt(size[1]), type.toString());
} }
} }
] ],
}).open(); on: {
dialog.on('opened', () => { open: () => {
picker = f7.picker.create({ picker = f7.picker.create({
containerEl: document.getElementById('picker-table-size'), containerEl: document.getElementById('picker-table-size'),
cols: [ cols: [
@ -77,7 +77,9 @@ class AddTableController extends Component {
rotateEffect: true, rotateEffect: true,
value: [3, 3] value: [3, 3]
}); });
}); }
}
}).open();
} }
render () { render () {

View file

@ -64,9 +64,9 @@ class AddOtherController extends Component {
api.put_Table(parseInt(size[0]), parseInt(size[1]), undefined, type.toString()); api.put_Table(parseInt(size[0]), parseInt(size[1]), undefined, type.toString());
} }
} }
] ],
}).open(); on: {
dialog.on('opened', () => { open: () => {
picker = f7.picker.create({ picker = f7.picker.create({
containerEl: document.getElementById('picker-table-size'), containerEl: document.getElementById('picker-table-size'),
cols: [ cols: [
@ -85,7 +85,9 @@ class AddOtherController extends Component {
rotateEffect: true, rotateEffect: true,
value: [3, 3] value: [3, 3]
}); });
}); }
}
}).open();
} }
hideAddComment () { hideAddComment () {