lots of change

This commit is contained in:
devin committed 2012-05-02 17:04:16 +08:00
1 parent bfc4507696
commit 887bda1491
10 files changed
+458 -5

No files matched your search

+20 -2
View File
@@ -118,7 +118,7 @@ var orbitDesktop = function(dom){
$(window).resize(function(){
var ww = $(window).width();
$("img#thmbackground").attr({"width":ww});
$('.tinycanvas').tinyscrollbar_update();
if( $('.tinycanvas') ){ $('.tinycanvas').tinyscrollbar_update(); }
});
var $widget_fn = $('.widget_fn'),$fn_des = $('.fn_des');
$widget_fn.hover(function(){
@@ -831,7 +831,12 @@ var orbitDesktop = function(dom){
var list = function(){ // to open list part in journal papers page
var bindHandlers = function(){ // to bind handlers for list page
o.simple_drop_down();
$('.tinycanvas')
.tinyscrollbar({ axis: 'x'})
.find('.scrollbar')
.delay(1500)
.addClass('op00', 500);
}
$("div#settings div#panel_r").load("/desktop/journal_p_list",function(){
@@ -856,6 +861,7 @@ var orbitDesktop = function(dom){
}else{
$(o.contentHolder).html(o.desktopData[o.currentface]);
bindHandlers();
list();
}
};
this.loadWallpaper = function(wallpaper){ // this is to load new wallpaper
@@ -899,6 +905,18 @@ var orbitDesktop = function(dom){
o.notify("Wallpaper saving failed!!","imp",2);
})
};
this.simple_drop_down = function(){
// simple dropdown menu
if( !$('.sdm').children('.sdm_o') ){
return;
} else {
$('.sdm').hover(function(){
$(this).stop(1,1).toggleClass('thmc2 thmtxt');
}, function(){
$(this).stop(1,1).toggleClass('thmc2 thmtxt');
});
}
}
o.initialize();
}