From 863a6bc22614747dd368ac536a8cf92c21ad5c2e Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 3 Feb 2016 21:37:43 +0000 Subject: [PATCH] Update JS for API changes moving to paper-dialog --- src/gui/html/js/events.js | 4 ++-- src/gui/html/js/init.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/html/js/events.js b/src/gui/html/js/events.js index 8d17bf91..d35cd6f8 100644 --- a/src/gui/html/js/events.js +++ b/src/gui/html/js/events.js @@ -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) { diff --git a/src/gui/html/js/init.js b/src/gui/html/js/init.js index 45a7fe1f..89bb1d13 100644 --- a/src/gui/html/js/init.js +++ b/src/gui/html/js/init.js @@ -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); };