From 5a87d6b8dd78c84ac7d2e91ad186db86a5866cde Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 30 Sep 2014 13:52:53 +0200 Subject: [PATCH] use reloadPanel --- static/js/statisticsDialog.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/static/js/statisticsDialog.js b/static/js/statisticsDialog.js index 56fc1bc9..07cd77e5 100644 --- a/static/js/statisticsDialog.js +++ b/static/js/statisticsDialog.js @@ -78,9 +78,7 @@ pandora.ui.statisticsDialog = function() { .bindEvent({ resizeend: function(data) { dialogWidth = data.width; - $tabPanel.$element.replaceElement(1, - $tabPanel.options('content')($tabPanel.selected()) - ); + $tabPanel.reloadPanel(); } }), @@ -171,9 +169,7 @@ pandora.ui.statisticsDialog = function() { .css({float: 'left', margin: '4px'}) .bindEvent({ change: function() { - $tabPanel.$element.replaceElement(1, - $tabPanel.options('content')($tabPanel.selected()) - ); + $tabPanel.reloadPanel(); } });