Update JS for API changes moving to paper-dialog

This commit is contained in:
Oliver Hamlet
2016-03-05 11:49:26 +00:00
parent b2244e1447
commit 863a6bc226
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -324,7 +324,7 @@ function onOpenLogLocation() {
loot.query('openLogLocation').catch(handlePromiseError);
}
function onShowAboutDialog() {
document.getElementById('about').showModal();
document.getElementById('about').open();
}
function handleUnappliedChangesClose(change) {
loot.Dialog.askQuestion('', loot.l10n.translate('You have not yet applied or cancelled your %s. Are you sure you want to quit?', change), loot.l10n.translate('Quit'), (result) => {
@@ -407,7 +407,7 @@ function onCloseSettingsDialog(evt) {
evt.target.parentElement.close();
}
function onShowSettingsDialog() {
document.getElementById('settingsDialog').showModal();
document.getElementById('settingsDialog').open();
}
function onEditorOpen(evt) {
+1 -1
View File
@@ -274,7 +274,7 @@
return setGameData(loot);
}).then(() => {
if (!loot.settings.lastVersion || loot.settings.lastVersion !== loot.version) {
document.getElementById('firstRun').showModal();
document.getElementById('firstRun').open();
}
}).catch(handlePromiseError);
};