Skip to content

Commit

Permalink
Client side: Fixed highlighting of selected row in initialization [Cl…
Browse files Browse the repository at this point in the history
…oses #231]
  • Loading branch information
s4muel authored and o5 committed Nov 1, 2015
1 parent fffb42c commit e2e053e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client-side/js/grido.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@
}

this.initSelectState();
this.initActiveRows();
this.bindClickOnCheckbox();
this.bindClickOnRow();
this.bindClickOnInvertor();
Expand All @@ -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.
*/
Expand Down Expand Up @@ -942,4 +948,4 @@
window.Grido = Grido;
return Grido;

})(jQuery, window, document, location, navigator);
})(jQuery, window, document, location, navigator);

0 comments on commit e2e053e

Please sign in to comment.