Merge branch 'design_team' into ldap

This commit is contained in:
Christophe Vilayphiou committed 2012-05-17 23:36:24 +08:00
commit 17b6a70506
12 files changed
+168 -19

No files matched your search

@@ -6,7 +6,7 @@ class Admin::AdBannersController < OrbitBackendController
def rename
@ad_banner = AdBanner.find(params[:id])
@ad_banner.title = Nokogiri::HTML.fragment(params["body"]).at("a").children().to_s
@ad_banner.title = params[:body]
render :json => {:success =>@ad_banner.save!}
end
def destroy
@@ -18,7 +18,8 @@ class Admin::AdImagesController < ApplicationController
end
def new
@ad_image =AdImage.new
ad_banner = AdBanner.find params[:ad_banner_id]
@ad_image =ad_banner.ad_images.build
@ad_image.post_date = Date.today
@ad_image.unpost_date = Date.today + 30
#render :action => 'new',:url=> {:ad_banner_id => params.has_key?(:ad_banner_id)? params[:ad_banner_id],nil}