spree/spree — pull request #966 by hatchws (2012-01-12 14:31:57+00:00)
Title: Dashboard date range bug fix 

The AJAX call to update the date range on the dashboard was failing with the error message:

orders_by_day_settings is not defined
all.js (line 27969)

The document ready call was defining the variable with the preceding 'var', removing this solved the issue. There are other global variables defined in this method so I didn't see a problem with making this amendment in this instance.