Sha256: 80dfd5c4720218561606d388a65f8cb15e4a2651bafae699e67030945bf1bbf9

Contents?: true

Size: 720 Bytes

Versions: 9

Compression:

Stored size: 720 Bytes

Contents

var filtertable = (function() {
    return {
        initialize : function() {
            var theTable = $('table.filter_table');
            var filter = $('#filter');

            filter.live('change, keyup', function(){
                $.uiTableFilter(theTable, this.value);
            });

            //override the submit so it doesn't try to push a form
            $('#filter_form').submit(function () {
                filter.keyup();
                return false;
            }).focus(); //Give focus to input field
            $('.filter_button').click(function(){filter.change()});
        }
    };
})();

$(document).ready(function() {
    // initialize the filter table
    filtertable.initialize();
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.4 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.3 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.2 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.1 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.0 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.0.rc3 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.0.rc2 app/assets/javascripts/katello/widgets/filtertable/filtertable.js
katello-2.4.0.rc1 app/assets/javascripts/katello/widgets/filtertable/filtertable.js