Sha256: 9febcc888eb547e653e41fc6ee0279e281d4e70b5d9eae573ad70ce180cde2a8

Contents?: true

Size: 613 Bytes

Versions: 16

Compression:

Stored size: 613 Bytes

Contents

Dashboard.SearchTab = Ember.View.extend
  type: 'view'
  templateName: 'search-tab'
  routeName: ''
  tagName: ''

  routeParams: (->
    @get('controller.searchRouteParams')
  ).property('controller.searchRouteParams')

  hasSearch: (->
    hasValues = (values)->
      results = []

      $.map values, (value)=>
        if Ember.typeOf(value) == 'object'
          results.push hasValues(value)
        else if !Ember.isEmpty(value)
          results.push true

      return [].concat.apply([], results)

    return $.inArray(true, hasValues(@get('controller.search'))) != -1
  ).property('controller.search')

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dune-dashboard-1.1.5 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.1.4 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.1.3 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.1.2 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.1.1 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.1.0 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.9 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.8 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.7 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.6 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.5 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.4 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.3 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.2 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.1 app/assets/javascripts/views/search-tab.coffee
dune-dashboard-1.0.0 app/assets/javascripts/views/search-tab.coffee