From 12ee49ccbd9a1df721666a05b771cb9b3c48681f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 11 Jan 2018 09:42:27 +1300 Subject: [PATCH] Use regex with word boundaries to replace 'active' --- javascript/CMSPageHistoryController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/CMSPageHistoryController.js b/javascript/CMSPageHistoryController.js index cb59b128..e5051250 100644 --- a/javascript/CMSPageHistoryController.js +++ b/javascript/CMSPageHistoryController.js @@ -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); },