Sha256: f359064d79674d0d9e7882bb2b83688675d0d6ee2db5418e32ffc5e9b8f75169

Contents?: true

Size: 519 Bytes

Versions: 53

Compression:

Stored size: 519 Bytes

Contents

module Spider; module Components
    
    class SearchTable < Spider::Components::Table
        tag 'search-table'
        
        def prepare
            super
            params['q'] = nil if params['clear']
            @scene.query = params['q']
        end
 
        def prepare_queryset(qs)
            qs = super
            if (params['q'])
                qs.condition = qs.condition.and(@model.free_query_condition(params['q']))
            end
            return qs
        end
        
    end
    
end; end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
spiderfw-0.6.32 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.31 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.30 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.29 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.28 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.27 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.26 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.26.pre1 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.25 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.24 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.23 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.22 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.21 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.20 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.19 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.18 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.17 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.16 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.15 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.14 apps/core/components/widgets/search_table/search_table.rb