Sha256: e01e7a9e6512f1b35c8cba42e45dcd6cb98f3b0c4f98db617078d2bbd6f10f87

Contents?: true

Size: 566 Bytes

Versions: 8

Compression:

Stored size: 566 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

        def run
            super
        end
        
    end
    
end; end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/core/components/widgets/search_table/search_table.rb
spiderfw-1.0.0 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.39 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.38 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.37 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.35 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.34 apps/core/components/widgets/search_table/search_table.rb
spiderfw-0.6.33 apps/core/components/widgets/search_table/search_table.rb