From 59f55c662df85e49b937f23af9f8091dddaa0f2c Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 8 Nov 2014 17:01:33 +0000 Subject: [PATCH] Added custom element. This is a with a -like API. --- resources/report/html/loot-dialog.html | 42 ++++++++++++++++++++++++-- resources/report/js/script.js | 14 ++++----- resources/report/report.html | 17 ++++++----- 3 files changed, 56 insertions(+), 17 deletions(-) diff --git a/resources/report/html/loot-dialog.html b/resources/report/html/loot-dialog.html index df4bb2b4..5d7a5fe0 100644 --- a/resources/report/html/loot-dialog.html +++ b/resources/report/html/loot-dialog.html @@ -1,9 +1,47 @@ - + + + + \ No newline at end of file diff --git a/resources/report/js/script.js b/resources/report/js/script.js index 58f8de9f..5ce304a8 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -775,8 +775,8 @@ function sortUIElements(pluginNames) { } function openProgressDialog() { var progressDialog = document.getElementById('progressDialog'); - if (!progressDialog.opened) { - progressDialog.opened = true; + if (!progressDialog.open) { + progressDialog.showModal(); progressDialog.querySelector('.progress').classList.toggle('running'); } } @@ -786,8 +786,8 @@ function updateProgressDialog(message) { } function closeProgressDialog() { var progressDialog = document.getElementById('progressDialog'); - if (progressDialog.opened) { - progressDialog.opened = false; + if (progressDialog.open) { + progressDialog.close(); progressDialog.querySelector('.progress').classList.toggle('running'); } } @@ -1035,7 +1035,7 @@ function switchSidebarTab(evt) { } function showAboutDialog(evt) { - document.getElementById('about').opened = true; + document.getElementById('about').showModal(); } function closeSettingsDialog(evt) { if (!areSettingsValid()) { @@ -1089,7 +1089,7 @@ function closeSettingsDialog(evt) { } function showSettingsDialog(evt) { - document.getElementById('settings').opened = true; + document.getElementById('settings').showModal(); } function getDialogParent(element) { @@ -1374,7 +1374,7 @@ function initVars() { } if (!loot.settings.lastVersion || loot.settings.lastVersion != loot.version) { - document.getElementById('firstRun').opened = true; + document.getElementById('firstRun').showModal(); } }).catch(processCefError); diff --git a/resources/report/report.html b/resources/report/report.html index 51782788..2e106128 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -12,6 +12,7 @@ + @@ -182,7 +183,7 @@ - +

Version (build )

Load order optimisation for Oblivion, Skyrim, Fallout 3 and Fallout: New Vegas.

http://loot.github.io

@@ -202,9 +203,9 @@ You should have received a copy of the GNU General Public License along with LOOT. If not, see <http://www.gnu.org/licenses/>. OK -
+
- +
Default Game
@@ -255,10 +256,10 @@ along with LOOT. If not, see <http://www.gnu.org/licenses/>.

Language changes will be applied after LOOT is restarted.

Apply Cancel - + - + @@ -266,9 +267,9 @@ 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.
  • @@ -280,6 +281,6 @@ along with LOOT. If not, see <http://www.gnu.org/licenses/>.

See LOOT's documentation, accessed through the toolbar menu, for further details.

OK -
+ \ No newline at end of file