Skip to content

Commit

Permalink
fixed daterange to prevent locale options
Browse files Browse the repository at this point in the history
closes #71
  • Loading branch information
M. Peter committed Apr 3, 2017
1 parent de2f30d commit 6aa8ca4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions _src/js/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ IGGY_IDX = 1

class IGGY extends Backbone.Events
$: jQuery
jQuery: jQuery
constructor: ( el, facets = [], options = {} )->
_.extend @, Backbone.Events
@_initErrors()
Expand Down
1 change: 1 addition & 0 deletions _src/js/views/facets/base.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class FacetSubsBase extends Backbone.View

initialize: ( options )=>
@sub = options.sub
@jQuery = @sub.jQuery
@result = new SubResults()
return

Expand Down
2 changes: 1 addition & 1 deletion _src/js/views/facets/daterange.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FacetSubsDateRange extends require( "./base" )

focus: ()=>
if not @daterangepicker?
_opts = _.extend( {}, @model.get( "opts" ), @forcedDateRangeOpts() )
_opts = @jQuery.extend( true, {}, @model.get( "opts" ), @forcedDateRangeOpts() )
@$inp.daterangepicker( _opts, @_dateReturn )
@daterangepicker = @$inp.data( "daterangepicker" )
@daterangepicker.container?.addClass( "daterange-iggy" )
Expand Down
1 change: 1 addition & 0 deletions _src/js/views/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class MainView extends Backbone.View
initialize: ( options )=>

@main = options.main
@jQuery = @main.jQuery
@idx = options.idx
@results = options.results

Expand Down
1 change: 1 addition & 0 deletions _src/js/views/sub.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ViewSub extends Backbone.View
@result = new Backbone.Collection()
#@$el.on "click", @reopen
@parent = options.parent
@jQuery = @parent.jQuery

@$el.data( "fctid", @model.id )

Expand Down

0 comments on commit 6aa8ca4

Please sign in to comment.