Sha256: 6a63ad7ce7001274c4e315e5de3a35b755220bdf477fdb6be35fb3dc2d442ac2

Contents?: true

Size: 460 Bytes

Versions: 6

Compression:

Stored size: 460 Bytes

Contents

#= require_tree ./views
#= require locomotive/typeahead.js
#= require_self

# FIXME: are we doing alias_method_chain pattern here? :-)
application_view_klass = Locomotive.Views.ApplicationView.prototype
application_view_klass.render_without_search_bar = application_view_klass.render

application_view_klass.render = ->
  _.tap this.render_without_search_bar(), =>
    search_bar_view = new Locomotive.Views.Shared.SearchBarView()
    search_bar_view.render()

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotivecms-search-0.3.6 app/assets/javascripts/locomotive/search_bar.js.coffee
locomotivecms-search-0.3.5 app/assets/javascripts/locomotive/search_bar.js.coffee
locomotivecms-search-0.3.4 app/assets/javascripts/locomotive/search_bar.js.coffee
locomotivecms-search-0.3.3 app/assets/javascripts/locomotive/search_bar.js.coffee
locomotivecms-search-0.3.2 app/assets/javascripts/locomotive/search_bar.js.coffee
locomotivecms-search-0.3.0 app/assets/javascripts/locomotive/search_bar.js.coffee