mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 18:05:55 +01:00
migrated all remaining dialogs to bootstrap modals, #203
This commit is contained in:
@@ -223,6 +223,11 @@ function AttributesModel() {
|
||||
}
|
||||
|
||||
async function showDialog() {
|
||||
// lazily apply bindings on first use
|
||||
if (!ko.dataFor($dialog[0])) {
|
||||
ko.applyBindings(attributesModel, $dialog[0]);
|
||||
}
|
||||
|
||||
glob.activeDialog = $dialog;
|
||||
|
||||
await attributesModel.loadAttributes();
|
||||
@@ -230,8 +235,6 @@ async function showDialog() {
|
||||
$dialog.modal();
|
||||
}
|
||||
|
||||
ko.applyBindings(attributesModel, $dialog[0]);
|
||||
|
||||
$dialog.on('focus', '.attribute-name', function (e) {
|
||||
if (!$(this).hasClass("ui-autocomplete-input")) {
|
||||
$(this).autocomplete({
|
||||
|
||||
Reference in New Issue
Block a user