details changed

orbitdesktop.js, orbitdesktopAPI.js update!
This commit is contained in:
devin committed 2012-04-06 04:42:20 +08:00
1 parent 39e1bc8948
commit 74f083b226
8 files changed
+149 -91

No files matched your search

+26 -9
View File
@@ -65,7 +65,7 @@ var orbitDesktop = function(dom){
if(o.currenthtml!=target){
o.desktopData[o.currentface] = $(o.contentHolder).html();
$("#content").hide("drop",o.transitionTime,function(){
o.initializeSectionsManager(target);
o.initializeSettings(target);
});
}
});
@@ -132,6 +132,7 @@ var orbitDesktop = function(dom){
});
$('#holder').tinyscrollbar({ axis: 'x'});
sdm();
}
if(!o.desktopData[o.currentface]){
$(o.contentHolder).empty().load("/desktop/"+target,function(){
@@ -219,11 +220,14 @@ var orbitDesktop = function(dom){
}
else
$("#"+$(this).attr("data-category")).append(element);
}
},
over:function(){
$(this).find('span.tile').removeClass('op06');
},
out:function(){
$(this).find('span.tile').addClass('op06');
}
});
$(".section_label ul li:not(:nth-child(1)) span.tile").hover(function(){
$(this).toggleClass("op06");
})//.mouseleave(function(){$(this).addClass("op06");});
$('#holder').tinyscrollbar({ axis: 'x'});
};
if(!o.desktopData[o.currentface]){
@@ -283,7 +287,7 @@ var orbitDesktop = function(dom){
};
this.initializeSettings = function(target){
o.currenthtml = target;
o.currentface = "sections";
o.currentface = "settings";
if(!o.desktopData[o.currentface]){
$(o.contentHolder).empty().load("/desktop/"+target,function(){
// bindHandlers();
@@ -301,6 +305,7 @@ orbitDesktop.prototype.themefolder = "themes";
// devin
(function(){
$(document).ready(function(){
// dock effect
var $widget_fn = $('.widget_fn'),
$fn_des = $('.fn_des');
@@ -324,8 +329,20 @@ orbitDesktop.prototype.themefolder = "themes";
$fn_des.stop(true, true).fadeOut();
});
});
}());
}());
// Simple Dropdown Menu
function sdm(){
var $sdm = $('.sdm');
if( !$sdm.children('.sdm_o') ){
return;
} else {
$sdm.hover(function(){
$(this).addClass('thmc2');
}, function(){
$(this).removeClass('thmc2');
});
}
}