Browse files

Cleanup

  • Loading branch information...
1 parent 03ca8fa commit ef1d9d8c6960782cb8abb5ea2725345922452abd Arthur Holstvoogd committed Nov 28, 2012
View
7 app/assets/javascripts/imports/carousel.js
@@ -90,8 +90,11 @@ Carousel = Class.create(Abstract, {
},
focus: function (slide, event) {
- this.stop();
- this.moveTo(slide);
+ this.stop()
+ // dur = this.duration
+ // this.duration = 0
+ this.moveTo(slide)
+ // this.duration = dur
},
click: function (event) {
View
3 app/controllers/news_archives_controller.rb
@@ -25,9 +25,8 @@ def archive
@news_items = @news_archive.news_items
@start_date = @news_archive.news_items.last.publication_start_date
@end_date = @news_archive.news_items.first.publication_start_date
- @valid_range = (@start_date.beginning_of_year..@end_date.end_of_year)
+ @valid_range = (@start_date.beginning_of_month..Date.today.end_of_month)
@date = Time.now unless @valid_range.cover? @date
- #@date = Time.now unless (@start_date..@end_date).include?(@date)
@news_items = @news_items.where('nodes.publication_start_date' => @date.beginning_of_month..@date.end_of_month)
end
View
2 lib/devcms_core.rb
@@ -58,7 +58,7 @@ module DevcmsCore
autoload :EngineExtensions
autoload :Hijacker
autoload :ImageProcessingExtensions
- autoload :NewsItemsAssociationExtensions
+ # autoload :NewsItemsAssociationExtensions
autoload :Recaptcha
autoload :RespondsToParent
autoload :RoleRequirementSystem
View
5 lib/devcms_core/news_items_association_extensions.rb
@@ -1,5 +0,0 @@
-module DevcmsCore
- module NewsItemsAssociationExtensions
-
- end
-end

0 comments on commit ef1d9d8

Please sign in to comment.