Page slide does not reload from server for ad_banner

This commit is contained in:
chris committed 2013-10-19 19:17:24 +08:00
1 parent 92d2af13f2
commit fea86ba3a9
26 files changed
+254 -3007

No files matched your search

+2 -2
View File
@@ -18,13 +18,13 @@ class AdBanner
validates :title, :length => { :minimum => 2 }
validates :height, :speed, :timeout, :width, :presence => true
FX_TYPES = ["blindX","blindY","blindZ","cover","curtainX","curtainY","fade","fadeZoom","growX","growY","scrollUp","scrollDown","scrollLeft","scrollRight","scrollHorz","scrollVert","shuffle","slideX","slideY","toss","turnUp","turnDown","turnLeft","turnRight","uncover","wipe","zoom"]
FX_TYPES = %w(fade fadeout flipHorz flipVert scrollHorz scrollVert tileSlide tileBlind)
def size
"#{self.width} x #{self.height}"
end
def timeout_in_min
def timeout_millisecond
self.timeout*1000 rescue 0
end