mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Use regex with word boundaries to replace 'active'
This commit is contained in:
parent
fa8b9c143a
commit
12ee49ccbd
@ -164,7 +164,7 @@
|
|||||||
*/
|
*/
|
||||||
_unselect: function() {
|
_unselect: function() {
|
||||||
var tr = this.get(0);
|
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);
|
this.find(":input[type=checkbox][checked]").attr("checked", false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user