theme setting update

This commit is contained in:
devin 2012-04-11 15:22:05 +08:00
parent 0219c3df28
commit 1fabe3d8f7
1 changed files with 4 additions and 3 deletions

View File

@ -176,9 +176,10 @@ var orbitDesktop = function(dom){
o.initializeWidgets();
}
};
this.tempFunc = function(){
this.tempFunc = function(th){
//o.notify("This is test notification!!","alert",2)
$.post("/desktop/save_desktop_settings",{"id":o.desktopId,"theme":$('.theme_name').text()},function(){
console.log(th);
$.post("/desktop/save_desktop_settings",{"id":o.desktopId,"theme":th},function(){
o.notify("Settings Saved!!","success");
})
}
@ -304,7 +305,7 @@ var orbitDesktop = function(dom){
.data('clicked',true)
.find('.theme_name')
.addClass('thmtxt');
od.tempFunc();
od.tempFunc($(this).text());
});
$('.tinycanvas').each(function(){