Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
c9eb7b4b90
|
@ -0,0 +1,23 @@
|
||||||
|
class UpdateCourseActivity < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
count = CourseActivity.all.count / 30 + 2
|
||||||
|
transaction do
|
||||||
|
for i in 1 ... count do i
|
||||||
|
CourseActivity.page(i).per(30).each do |activity|
|
||||||
|
if activity.course_act
|
||||||
|
if activity.course_act_type == 'Poll'
|
||||||
|
if activity.course_act.polls_status == 1
|
||||||
|
activity.destroy
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
activity.destroy
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20151020014759) do
|
ActiveRecord::Schema.define(:version => 20151020021234) do
|
||||||
|
|
||||||
create_table "activities", :force => true do |t|
|
create_table "activities", :force => true do |t|
|
||||||
t.integer "act_id", :null => false
|
t.integer "act_id", :null => false
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
if(options.minStatue == "true"){
|
if(options.minStatue == "true"){
|
||||||
show_btn.css("float", options.float);
|
show_btn.css("float", options.float);
|
||||||
sideContent.css('width', 0);
|
sideContent.css('width', 0);
|
||||||
show_btn.css('width', 25);
|
show_btn.css('width', 28);
|
||||||
}
|
}
|
||||||
//close
|
//close
|
||||||
closeBtn.bind("click",function(){
|
closeBtn.bind("click",function(){
|
||||||
sideContent.animate({width: '0px'},"fast");
|
sideContent.animate({width: '0px'},"fast");
|
||||||
show_btn.stop(true, true).delay(300).animate({ width: '25px'},"fast");
|
show_btn.stop(true, true).delay(300).animate({ width: '28px'},"fast");
|
||||||
cookiesave('minStatue','true','','','');
|
cookiesave('minStatue','true','','','');
|
||||||
});
|
});
|
||||||
//show
|
//show
|
||||||
|
|
Loading…
Reference in New Issue