Browse Source

Save WebUI Statistics window size

adaptive-webui-19844
Thomas Piccirello 7 years ago
parent
commit
c47e4efade
  1. 10
      src/webui/www/private/scripts/mocha-init.js

10
src/webui/www/private/scripts/mocha-init.js

@ -236,15 +236,19 @@ initializeWindows = function() { @@ -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);
}
});
};

Loading…
Cancel
Save