v1.18.x
psychobunny 10 years ago
parent b511bc37fb
commit bfaeee2531

@ -1,3 +1,6 @@
"use strict";
/*global define, app, templates*/
define('taskbar', function() { define('taskbar', function() {
var taskbar = { var taskbar = {
initialized: false, initialized: false,
@ -71,9 +74,11 @@ define('taskbar', function() {
}) })
.addClass(options.state !== undefined ? options.state : 'active'); .addClass(options.state !== undefined ? options.state : 'active');
if (!options.state || options.state === 'active') taskbar.minimizeAll(); if (!options.state || options.state === 'active') {
taskbar.tasklist.append(btnEl); taskbar.minimizeAll();
}
taskbar.tasklist.append(btnEl);
taskbar.update(); taskbar.update();
}, },
@ -111,5 +116,5 @@ define('taskbar', function() {
updateActive: taskbar.updateActive, updateActive: taskbar.updateActive,
isActive: taskbar.isActive, isActive: taskbar.isActive,
init: taskbar.init init: taskbar.init
} };
}); });

Loading…
Cancel
Save