with notifications and other changes

This commit is contained in:
Harry Bomrah committed 2012-03-29 19:50:23 +08:00
1 parent 176597f5af
commit aa3997f7cf
9 files changed
+76 -11

No files matched your search

+4 -4
View File
@@ -18,7 +18,6 @@ var orbitDesktop = function(dom){
o.themesettings = eval(ts);
$('head').append( $('<link rel="stylesheet" id="dyn_css" type="text/css" />').attr('href', "/"+o.themefolder+"/"+theme+"/css/"+ts.css));
$(document).ready(function(){o.loadWallpaper();o.bindDesktopEvents();o.loadIconCache();o.initializeDesktop();});
return;
})
};
@@ -134,7 +133,7 @@ var orbitDesktop = function(dom){
}
};
this.tempFunc = function(){
alert(o.tp);
o.notify("This is test notification!!","imp")
}
this.initializeAppSearch = function(target){
o.currenthtml = target;
@@ -204,8 +203,9 @@ var orbitDesktop = function(dom){
});
$(".section_label ul li:not(:nth-child(1))").droppable({
drop:function(){
if($("#"+$(this).attr("data-category")+" .element").length>=24)
o.notify("Section is full");
if($("#"+$(this).attr("data-category")+" .element").length>=24){
o.notify("Section is full.","alert");
}
else
$("#"+$(this).attr("data-category")).append(element);
}