Skip to content

Commit

Permalink
The right option is months, not monthNames.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmazza committed Aug 12, 2011
1 parent 811ddc5 commit 2f23bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/rails_admin/main/dashboard.html.haml
Expand Up @@ -49,7 +49,7 @@
- head_javascript do
:plain
$j(document).ready(function($) {
var cache = {};
var cache = {};
$("#timeline").timeline({
url: "#{ history_slider_path }",
monthChanged: function(month, year) {
Expand All @@ -66,6 +66,6 @@
);
}
},
monthNames: #{ActiveSupport::JSON.encode(month_names).html_safe}
months: #{ActiveSupport::JSON.encode(month_names).html_safe}
});
});

0 comments on commit 2f23bd0

Please sign in to comment.