Sha256: c6c78babcd52e603b4241f875e1f1fb03830e8045ccf874c9159864b0e35b5db

Contents?: true

Size: 301 Bytes

Versions: 142

Compression:

Stored size: 301 Bytes

Contents

module Spree
  module Admin
    module TablesHelper

      # Adds class 'active' to <th> & <td> tags
      # for better tables styling
      def sort_by_active_class(row)
        if params[:q][:s] && params[:q][:s].include?(row)
          return "sort-active"
        end
      end

    end
  end
end

Version data entries

142 entries across 142 versions & 4 rubygems

Version Path
spree_backend-3.1.14 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.13 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.12 app/helpers/spree/admin/tables_helper.rb
solidus_backend-1.2.3 app/helpers/spree/admin/tables_helper.rb
solidus_backend-1.1.4 app/helpers/spree/admin/tables_helper.rb
solidus_backend-1.0.7 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.11 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.10 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.9 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.8 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.7 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.6 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.5 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.4 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.3 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.2 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.0.10 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.1 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.0 app/helpers/spree/admin/tables_helper.rb
spree_backend-3.1.0.rc4 app/helpers/spree/admin/tables_helper.rb