diff options
author | Simon Rettberg | 2023-01-19 15:30:11 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-01-19 15:30:11 +0100 |
commit | 2b40b5641ba28187a8c2e9162391e9443e6e7a22 (patch) | |
tree | a957623cdfd08bfb9c689fa1be041a781ae553f3 /modules-available/eventlog/templates | |
parent | [statistics] Listview: Display roomlayout and unique properties in a sidebar (diff) | |
download | slx-admin-2b40b5641ba28187a8c2e9162391e9443e6e7a22.tar.gz slx-admin-2b40b5641ba28187a8c2e9162391e9443e6e7a22.tar.xz slx-admin-2b40b5641ba28187a8c2e9162391e9443e6e7a22.zip |
[eventlog] Sort dropdown, fix sample data display
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) + '...'; } |