theme changes

This commit is contained in:
Harry Bomrah authored and Christophe Vilayphiou committed 2012-04-06 17:49:22 +08:00
1 parent 7309d9c446
commit e1ef2b28e7
2 files changed
+14 -11

No files matched your search

+2 -1
View File
@@ -19,7 +19,8 @@ class DesktopController< ApplicationController
end
def save_desktop_settings
Desktop.update_attributes(:theme => params["theme"])
@desktop = Desktop.find(params["id"])
@desktop.update_attributes(:theme => params["theme"])
a = Array.new
a << {"success"=>"true"}
render :json=>a.to_json