diff --git a/client-side/js/grido.js b/client-side/js/grido.js index 45cb2e3c..60b7a21c 100644 --- a/client-side/js/grido.js +++ b/client-side/js/grido.js @@ -194,6 +194,7 @@ } this.initSelectState(); + this.initActiveRows(); this.bindClickOnCheckbox(); this.bindClickOnRow(); this.bindClickOnInvertor(); @@ -209,6 +210,11 @@ $(this.selector + ':checked', this.grido.$table).length === 0 && this.controlState('disabled'); }, + initActiveRows: function() + { + $(this.selector + ':checked', this.grido.$table).closest('tr').addClass('active'); + }, + /** * Click on checkbox with shift support. */ @@ -942,4 +948,4 @@ window.Grido = Grido; return Grido; -})(jQuery, window, document, location, navigator); \ No newline at end of file +})(jQuery, window, document, location, navigator);