theme changes

This commit is contained in:
Harry Bomrah committed 2012-04-06 17:24:39 +08:00
1 parent 20bfd0d984
commit 625df9094f
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