Msg box added and background image saving complete

This commit is contained in:
Harry Bomrah committed 2012-04-18 22:01:12 +08:00
1 parent b4bf81d40a
commit 4bad25e682
6 files changed
+117 -55

No files matched your search

+3
View File
@@ -42,6 +42,7 @@ class DesktopController< ApplicationController
case @savewhat
when "theme"
@desktop.update_attributes(:theme => params["theme"])
@desktop.update_attributes(:wallpaper => nil)
when "desktopnames"
@sections = @desktop.sections
x = 0;
@@ -64,6 +65,8 @@ class DesktopController< ApplicationController
when "customtheme"
@desktop.update_attributes(:theme => "custom")
@desktop.update_attributes(:customtheme => params['theme'])
when "wallpaper"
@desktop.update_attributes(:wallpaper => params["wallpapernm"])
end
a = Array.new
a << {"success"=>"true"}