diff options
Diffstat (limited to 'modules-available/eventlog/templates')
-rw-r--r-- | modules-available/eventlog/templates/page-filters-edit-rule.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules-available/eventlog/templates/page-filters-edit-rule.html b/modules-available/eventlog/templates/page-filters-edit-rule.html index a7886397..7016e156 100644 --- a/modules-available/eventlog/templates/page-filters-edit-rule.html +++ b/modules-available/eventlog/templates/page-filters-edit-rule.html @@ -172,8 +172,10 @@ var chFn = function () { var $this = $(this); var wat = currentType[$this.val()]; - if (wat) { - wat = wat.replace("\r", "\\r").replace("\n", "\\n"); + if (typeof(wat) !== 'undefined') { + if (typeof(wat) === 'string') { + wat = wat.replace("\r", "\\r").replace("\n", "\\n"); + } if (wat.length > 180) { wat = wat.substr(0, 180) + '...'; } |