desktopAPI update.

This commit is contained in:
Harry Bomrah authored and chris committed 2012-11-12 15:11:36 +08:00
1 parent a56d80698f
commit e498be9753
2 files changed
+16 -32

No files matched your search

+16 -17
View File
@@ -93,14 +93,18 @@ var orbitDesktop = function(dom){
var cache = false;
if(!o.desktopData[o.currentface]){
$(o.contentHolder).empty().load(url,function(){
if(typeof o.data_method != "undefined" || o.data_method != "")
window.o[o.data_method](target,url,cache);
if(typeof o.data_method != "undefined"){
if(o.data_method != "")
window.o[o.data_method](target,url,cache);
}
});
}else{
$(o.contentHolder).html(o.desktopData[o.currentface]);
cache = true;
if(typeof o.data_method != "undefined" || o.data_method != "")
if(typeof o.data_method != "undefined"){
if(o.data_method != "")
window.o[o.data_method](target,url,cache);
}
}
});
}
@@ -118,7 +122,15 @@ var orbitDesktop = function(dom){
// main: '.tinycanvas',
// fill: '.s_grid_con'
// })
window.o[o.data_method][sub_data_method]();
if(typeof o.data_method != "undefined"){
if(o.data_method != ""){
if(typeof sub_data_method != "undefined"){
if(sub_data_method != ""){
window.o[o.data_method][sub_data_method]();
}
}
}
}
})
}
$('.s_menu a').removeClass('thmc1 thmtxt active');
@@ -1373,16 +1385,3 @@ var uselessfunction = function(){
$.post("/desktop/temp_func",{sectionid:"4f83e7bbbd98eb041600001d"});
}
orbitDesktop.prototype.initCourses = function(){
o.notify("Hi there","","");
}
orbitDesktop.prototype.something = function(){
o.notify("something","","");
}