various update
This commit is contained in:
1 parent
42f45aa137
commit
0219c3df28
41 files changed
+120
-20
No files matched your search
@@ -178,7 +178,7 @@ var orbitDesktop = function(dom){
|
||||
};
|
||||
this.tempFunc = function(){
|
||||
//o.notify("This is test notification!!","alert",2)
|
||||
$.post("/desktop/save_desktop_settings",{"id":o.desktopId,"theme":$("#change_theme").val()},function(){
|
||||
$.post("/desktop/save_desktop_settings",{"id":o.desktopId,"theme":$('.theme_name').text()},function(){
|
||||
o.notify("Settings Saved!!","success");
|
||||
})
|
||||
}
|
||||
@@ -294,8 +294,17 @@ var orbitDesktop = function(dom){
|
||||
var bindHandlers = function(){
|
||||
$(".theme_list > li").click(function(){
|
||||
o.changeTheme($(this).find('.theme_name').text());
|
||||
$(".theme_list > li").removeClass('thmc1').data('clicked',null);
|
||||
$(this).addClass('thmc1').data('clicked',true);
|
||||
$(".theme_list > li")
|
||||
.removeClass('thmc1')
|
||||
.data('clicked',null)
|
||||
.find('.theme_name')
|
||||
.removeClass('thmtxt');
|
||||
$(this)
|
||||
.addClass('thmc1')
|
||||
.data('clicked',true)
|
||||
.find('.theme_name')
|
||||
.addClass('thmtxt');
|
||||
od.tempFunc();
|
||||
});
|
||||
|
||||
$('.tinycanvas').each(function(){
|
||||
@@ -332,6 +341,7 @@ var orbitDesktop = function(dom){
|
||||
|
||||
});
|
||||
|
||||
$('.theme_list li:first-child').data('clicked',true); // this line just for demo
|
||||
$('.theme_list li').hover(function(){
|
||||
$(this)
|
||||
.addClass('thmc1')
|
||||
|
||||
Reference in new issue
Block a user