theme setting update

This commit is contained in:
devin committed 2012-04-11 15:22:05 +08:00
1 parent 0219c3df28
commit 1fabe3d8f7
1 file changed
+4 -3
+4 -3
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(){