1 var PanelWindowClass = jQuery.klass({
4 windowIds: ['dashboard', 'container', 'graphs', 'config', 'users'],
7 initialize: function() {
8 this.currentWindowId = this.windowIds[0];
11 hideOthers: function() {
12 var hide_panel_by_id = function(id) {
15 if(el.is(':visible') === true && id != this.currentWindowId) {
24 for (var i = 0; i < this.windowIds.length; i++) {
25 hide_panel_by_id(this.windowIds[i]);
30 if($('#' + id).is(':visible') === true) {
34 this.currentWindowId = id;
35 $('#' + id).slideToggle({
52 PanelWindow = new PanelWindowClass();