diff options
author | moisseev <moiseev@mezonplus.ru> | 2023-11-19 16:35:51 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2023-11-19 16:35:51 +0300 |
commit | 6e93ef95865fae37212a02fb31aadeda082d14f2 (patch) | |
tree | 7a5e335f2c956fb836cf7a6754dbf54052749243 /interface | |
parent | 32ae9363987acc99b3b7812211ab754433d3da49 (diff) | |
download | rspamd-6e93ef95865fae37212a02fb31aadeda082d14f2.tar.gz rspamd-6e93ef95865fae37212a02fb31aadeda082d14f2.zip |
[Test] Restore stylistic rules check
https://eslint.org/blog/2023/10/deprecating-formatting-rules/
Diffstat (limited to 'interface')
-rw-r--r-- | interface/js/app/selectors.js | 2 | ||||
-rw-r--r-- | interface/js/main.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/interface/js/app/selectors.js b/interface/js/app/selectors.js index 759e3ea16..6535953b5 100644 --- a/interface/js/app/selectors.js +++ b/interface/js/app/selectors.js @@ -40,7 +40,7 @@ define(["jquery", "app/rspamd"], enable_disable_check_btn(); } const selector = $("#selectorsSelArea").val(); - if (selector.length && !rspamd.read_only ) { + if (selector.length && !rspamd.read_only) { rspamd.query("plugins/selectors/check_selector?selector=" + encodeURIComponent(selector), { method: "GET", success: function (json) { diff --git a/interface/js/main.js b/interface/js/main.js index a86982f87..4bc488895 100644 --- a/interface/js/main.js +++ b/interface/js/main.js @@ -22,7 +22,7 @@ requirejs.config({ shim: { app: {deps:["jquery"]}, codejar: {exports: "CodeJar", deps:["linenumbers"]}, - bootstrap: {exports:"bootstrap", deps:["jquery"]}, // Popovers require jQuery + bootstrap: {exports:"bootstrap", deps:["jquery"]}, // Popovers require jQuery d3: {exports:"d3"}, d3evolution: {exports:"D3Evolution", deps:["d3.global", "jquery"]}, d3pie: {exports:"D3Pie", deps:["d3.global", "jquery"]}, @@ -64,5 +64,5 @@ requirejs.onError = function (e) { // Load main UI require(["app/rspamd"], (rspamd) => { "use strict"; - rspamd.connect() + rspamd.connect(); }); |