From c47e4efade868ca4395b0cc9b24e72d37f13e95a Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Mon, 5 Mar 2018 01:40:21 -0500 Subject: [PATCH] Save WebUI Statistics window size --- src/webui/www/private/scripts/mocha-init.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 3a367f7e3..54bdcc2bf 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -236,15 +236,19 @@ initializeWindows = function() { }; StatisticsLinkFN = function() { + var id = 'statisticspage'; new MochaUI.Window({ - id: 'statisticspage', + id: id, title: 'QBT_TR(Statistics)QBT_TR[CONTEXT=StatsDialog]', loadMethod: 'xhr', contentURL: 'statistics.html', maximizable: false, - width: 275, - height: 370, padding: 10 + width: loadWindowWidth(id, 275), + height: loadWindowHeight(id, 370), + onResize: function() { + saveWindowSize(id); + } }); };