Use regex with word boundaries to replace 'active'

This commit is contained in:
Steve Boyd 2018-01-11 09:42:27 +13:00 committed by GitHub
parent fa8b9c143a
commit 12ee49ccbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@
*/
_unselect: function() {
var tr = this.get(0);
tr.className = $.trim(tr.className.replace('active', ''));
tr.className = $.trim(tr.className.replace(/\bactive\b/, ''));
this.find(":input[type=checkbox][checked]").attr("checked", false);
},