Custom thème done and theme id done…

This commit is contained in:
Harry Bomrah committed 2012-04-17 21:15:40 +08:00
1 parent b2d72902c3
commit 95a1e266ae
229 files changed
+100 -27

No files matched your search

+6 -2
View File
@@ -25,6 +25,8 @@ class DesktopController< ApplicationController
end
def settingthemes
# @themes = Theme.count
# raise @themes.inspect
render "desktop/settings/themes", :layout => false
end
@@ -59,8 +61,10 @@ class DesktopController< ApplicationController
break
end
end
end
when "customtheme"
@desktop.update_attributes(:theme => "custom")
@desktop.update_attributes(:customtheme => params['theme'])
end
a = Array.new
a << {"success"=>"true"}
render :json=>a.to_json