it-logica-application-backbone 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.4. | 
| 1 | 
            +
            1.4.5
         | 
| @@ -104,18 +104,20 @@ | |
| 104 104 |  | 
| 105 105 | 
             
                    <%
         | 
| 106 106 | 
             
                       sorted_class = ""
         | 
| 107 | 
            -
                       if col[: | 
| 108 | 
            -
             | 
| 109 | 
            -
             | 
| 110 | 
            -
             | 
| 111 | 
            -
             | 
| 112 | 
            -
             | 
| 113 | 
            -
             | 
| 114 | 
            -
             | 
| 115 | 
            -
             | 
| 116 | 
            -
             | 
| 117 | 
            -
             | 
| 118 | 
            -
             | 
| 107 | 
            +
                       if col[:non_sortable].nil? || (!col[:non_sortable].nil? && !col[:non_sortable])
         | 
| 108 | 
            +
                           if col[:column_method].blank? && col[:row_method].blank? && !col[:name].blank?
         | 
| 109 | 
            +
                             sorted_class += "sorting_th "
         | 
| 110 | 
            +
             | 
| 111 | 
            +
                             sorting_onclick = "TableSorting.force_toggled_change_sorting('#{settings[:form_id]}','#{col[:table] + "." +col[:name]}', this); return false;"
         | 
| 112 | 
            +
                             sorting_mouseover = "TableSorting.mouse_over_hover_sorting('#{settings[:form_id]}','#{col[:table] + "." +col[:name]}', this); return false;"
         | 
| 113 | 
            +
                             sorting_mouseout = "TableSorting.mouse_out_hover_sorting('#{settings[:form_id]}','#{col[:table] + "." +col[:name]}', this); return false;"
         | 
| 114 | 
            +
             | 
| 115 | 
            +
                             if (order_by_arr.include?(col[:table] + "." + col[:name] + " desc"))
         | 
| 116 | 
            +
                               sorted_class +="sorted sorted_desc"
         | 
| 117 | 
            +
                             elsif (order_by_arr.include?(col[:table] + "." + col[:name] + " asc"))
         | 
| 118 | 
            +
                               sorted_class +="sorted sorted_asc"
         | 
| 119 | 
            +
                             end
         | 
| 120 | 
            +
                           end
         | 
| 119 121 | 
             
                       end
         | 
| 120 122 |  | 
| 121 123 | 
             
                    %>
         | 
| @@ -5,11 +5,11 @@ | |
| 5 5 |  | 
| 6 6 | 
             
            Gem::Specification.new do |s|
         | 
| 7 7 | 
             
              s.name = "it-logica-application-backbone"
         | 
| 8 | 
            -
              s.version = "1.4. | 
| 8 | 
            +
              s.version = "1.4.5"
         | 
| 9 9 |  | 
| 10 10 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 11 11 | 
             
              s.authors = ["Ladas"]
         | 
| 12 | 
            -
              s.date = "2013- | 
| 12 | 
            +
              s.date = "2013-10-16"
         | 
| 13 13 | 
             
              s.description = "longer description of your gem"
         | 
| 14 14 | 
             
              s.email = "ladislav.smola@it-logica.cz"
         | 
| 15 15 | 
             
              s.extra_rdoc_files = [
         | 
| @@ -104,6 +104,14 @@ class TableSettings | |
| 104 104 | 
             
                  self
         | 
| 105 105 | 
             
                end
         | 
| 106 106 |  | 
| 107 | 
            +
                # Defines column with non-sortable content. Affects only standard columns. Sortable if not set.
         | 
| 108 | 
            +
                #
         | 
| 109 | 
            +
                # @param [Boolean] bool
         | 
| 110 | 
            +
                #
         | 
| 111 | 
            +
                def non_sortable(bool = true)
         | 
| 112 | 
            +
                  @column_hash[:non_sortable] = bool
         | 
| 113 | 
            +
                end
         | 
| 114 | 
            +
             | 
| 107 115 | 
             
                # For editable table, defines wchich column should be editable
         | 
| 108 116 | 
             
                def editable(bool = true)
         | 
| 109 117 | 
             
                  @column_hash[:editable] = bool
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: it-logica-application-backbone
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.4. | 
| 4 | 
            +
              version: 1.4.5
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013- | 
| 12 | 
            +
            date: 2013-10-16 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: htmlentities
         | 
| @@ -467,7 +467,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 467 467 | 
             
                  version: '0'
         | 
| 468 468 | 
             
                  segments:
         | 
| 469 469 | 
             
                  - 0
         | 
| 470 | 
            -
                  hash: - | 
| 470 | 
            +
                  hash: -205251430528928679
         | 
| 471 471 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 472 472 | 
             
              none: false
         | 
| 473 473 | 
             
              requirements:
         |