diff --git a/resources/report/html/loot-dialog.html b/resources/report/html/loot-dialog.html index 9ea4585c..bec92fe2 100644 --- a/resources/report/html/loot-dialog.html +++ b/resources/report/html/loot-dialog.html @@ -11,10 +11,7 @@ Still missing compared to are: - - - - + + \ No newline at end of file diff --git a/resources/report/html/message-dialog.html b/resources/report/html/message-dialog.html deleted file mode 100644 index 215ac88a..00000000 --- a/resources/report/html/message-dialog.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - diff --git a/resources/report/js/script.js b/resources/report/js/script.js index 4c0dbba3..60db2642 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -364,7 +364,7 @@ function processCefError(err) { info than just the error message. */ console.log(err.stack); closeProgressDialog(); - showMessageBox('error', 'Error', err.message); + showMessageBox('Error', err.message); } function saveFilterState(evt) { @@ -535,20 +535,16 @@ function applyFilters(evt) { }); } function showMessageDialog(title, text, closeCallback) { - var dialog = new MessageDialog(); + var dialog = document.createElement('loot-message-dialog'); dialog.setButtonText(l10n.jed.translate('Yes').fetch(), l10n.jed.translate('Cancel').fetch()); + dialog.showModal(title, text, closeCallback); document.body.appendChild(dialog); - dialog.showModal('warn', title, text, closeCallback); } -function showMessageBox(type, title, text) { - var dialog = new MessageDialog(); - if (type == 'error' || type == 'info') { - dialog.setButtonText(l10n.jed.translate('OK').fetch(), l10n.jed.translate('Cancel').fetch()); - } else { - dialog.setButtonText(l10n.jed.translate('Yes').fetch(), l10n.jed.translate('Cancel').fetch()); - } +function showMessageBox(title, text) { + var dialog = document.createElement('loot-message-dialog'); + dialog.setButtonText(l10n.jed.translate('OK').fetch()); + dialog.showModal(title, text); document.body.appendChild(dialog); - dialog.showModal(type, title, text); } function openLogLocation(evt) { loot.query('openLogLocation').catch(processCefError); @@ -904,12 +900,10 @@ function redatePlugins(evt) { showMessageDialog('Redate Plugins', 'This feature is provided so that modders using the Creation Kit may set the load order it uses. A side-effect is that any subscribed Steam Workshop mods will be re-downloaded by Steam. Do you wish to continue?', function(result){ if (result) { loot.query('redatePlugins').then(function(response){ - showMessageBox('info', 'Redate Plugins', 'Plugins were successfully redated.'); + showMessageBox('Redate Plugins', 'Plugins were successfully redated.'); }).catch(processCefError); } }); - - //showMessageBox('info', 'Redate Plugins', 'Plugins were successfully redated.'); } function clearAllMetadata(evt) { showMessageDialog('Clear All Metadata', 'Are you sure you want to clear all existing user-added metadata from all plugins?', function(result){ diff --git a/resources/report/report.html b/resources/report/report.html index 21c88925..717171d9 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -8,12 +8,12 @@ - + @@ -184,7 +184,7 @@ - + Version (build ) Load order optimisation for Oblivion, Skyrim, Fallout 3 and Fallout: New Vegas. http://loot.github.io @@ -206,7 +206,7 @@ along with LOOT. If not, see <http://www.gnu.org/licenses/>. OK - + Default Game @@ -260,7 +260,7 @@ along with LOOT. If not, see <http://www.gnu.org/licenses/>. - + @@ -270,7 +270,7 @@ along with LOOT. If not, see <http://www.gnu.org/licenses/>. Calculating the last digit of π... - + This appears to be the first time you have run LOOT v. Here are some tips to help you get started with the interface. As well as messages, LOOT displays plugin version numbers, CRCs and Bash Tag suggestions for addition and removal.
Version (build )
Load order optimisation for Oblivion, Skyrim, Fallout 3 and Fallout: New Vegas.
http://loot.github.io
This appears to be the first time you have run LOOT v. Here are some tips to help you get started with the interface.