~ya-bo-ng/+junk/natty-taste

« back to all changes in this revision

Viewing changes to js/scripts.js

  • Committer: Anthony Dillon
  • Date: 2011-08-31 14:26:44 UTC
  • Revision ID: anthony.dillon@canonical.com-20110831142644-wh2achhmwuk2l224
Created Notifications, extra folder views and selected window styling

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
var welcomeSystem = null;
24
24
var moviePlayerSystem = null;
25
25
var guidedTourSystem = null;
 
26
var notificationSystem = null;
26
27
var fileLibrary = new Array();
27
28
 
28
29
$(document).ready(function(){
41
42
        setupShutdownSystem();
42
43
        setupMoviePlayerSystem();
43
44
        setupLibreSystem();
 
45
        setupNotificationSystem();
44
46
        init();
45
47
});
46
48
 
94
96
                        $('.firefox-window .web-overlay-tran').show();
95
97
                }
96
98
                $('.window').css('z-index',1);
 
99
                $('.window').removeClass('selected-window');
97
100
                $(this).css('z-index',2);
 
101
                $(this).addClass('selected-window');
98
102
                if(currentSystemSelected != $(this).attr('class').replace(' window', '')){
99
103
                        currentSystemSelected = $(this).attr('class').replace(' fullsize', '');
100
104
                        currentSystemSelected = currentSystemSelected.replace(' window', '');
281
285
        libreSystem.init();
282
286
}
283
287
 
 
288
function setupNotificationSystem(){
 
289
        notificationSystem = new NotificationSystem();
 
290
        notificationSystem.init();
 
291
}
 
292
 
284
293
function setupShutdownSystem(){
285
294
        shutdownSystem = new ShutdownSystem();
286
295
        shutdownSystem.init();
301
310
        emailSystem.init();
302
311
}
303
312
 
304
 
 
305
313
function setupUbuntuOneSystem(){
306
314
        ubuntuOneSystem = new UbuntuOneSystem(this);
307
315
        ubuntuOneSystem.init();