diff options
-rw-r--r-- | interface/js/app/config.js | 9 | ||||
-rw-r--r-- | interface/js/app/graph.js | 2 | ||||
-rw-r--r-- | interface/js/app/history.js | 2 | ||||
-rw-r--r-- | interface/js/app/rspamd.js | 2 | ||||
-rw-r--r-- | interface/js/app/stats.js | 2 | ||||
-rw-r--r-- | interface/js/app/symbols.js | 2 | ||||
-rw-r--r-- | interface/js/main.js | 2 |
7 files changed, 6 insertions, 15 deletions
diff --git a/interface/js/app/config.js b/interface/js/app/config.js index b3f4e5661..71a59a34b 100644 --- a/interface/js/app/config.js +++ b/interface/js/app/config.js @@ -159,15 +159,6 @@ define(["jquery", "codejar", "linenumbers", "prism"], }; let mode = "advanced"; - // CodeJar requires ES6 - if (!window.CodeJar || - // Required to restore cursor position - (typeof window.getSelection().setBaseAndExtent !== "function")) { - mode = "basic"; - $("input[name=editorMode][value='basic']").closest(".btn").button("toggle"); - $("input[name=editorMode][value='advanced']").closest(".btn").addClass("disabled").prop("title", "Not supported by web browser"); - } - // Modal form for maps $(document).on("click", "[data-bs-toggle=\"modal\"]", function () { var checked_server = rspamd.getSelector("selSrv"); diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index 3e4983a71..16fb338a2 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -23,7 +23,7 @@ THE SOFTWARE. */ -/* global d3:false, FooTable:false */ +/* global d3, FooTable */ define(["jquery", "d3evolution", "d3pie", "footable"], function ($, D3Evolution, D3Pie) { diff --git a/interface/js/app/history.js b/interface/js/app/history.js index a00d45eee..3770f9457 100644 --- a/interface/js/app/history.js +++ b/interface/js/app/history.js @@ -22,7 +22,7 @@ THE SOFTWARE. */ -/* global d3:false FooTable:false */ +/* global d3, FooTable */ define(["jquery", "footable"], function ($) { diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index eca4a7dfe..634dfcd1d 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -23,7 +23,7 @@ THE SOFTWARE. */ -/* global jQuery:false, FooTable:false, Visibility:false */ +/* global jQuery, FooTable, Visibility */ define(["jquery", "visibility", "nprogress", "stickytabs", "app/stats", "app/graph", "app/config", "app/symbols", "app/history", "app/upload", "app/selectors"], diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js index a00b99b62..d023f955e 100644 --- a/interface/js/app/stats.js +++ b/interface/js/app/stats.js @@ -22,7 +22,7 @@ THE SOFTWARE. */ -/* global d3:false */ +/* global d3 */ define(["jquery", "d3pie"], function ($, D3Pie) { diff --git a/interface/js/app/symbols.js b/interface/js/app/symbols.js index 5f6d7903b..ed9966b34 100644 --- a/interface/js/app/symbols.js +++ b/interface/js/app/symbols.js @@ -22,7 +22,7 @@ THE SOFTWARE. */ -/* global FooTable:false */ +/* global FooTable */ define(["jquery", "footable"], function ($) { diff --git a/interface/js/main.js b/interface/js/main.js index 4182bb2bc..3b0b8de15 100644 --- a/interface/js/main.js +++ b/interface/js/main.js @@ -1,4 +1,4 @@ -/* global d3:true, require:false, requirejs:false */ // eslint-disable-line no-unused-vars +/* global d3:writable, require, requirejs */ // eslint-disable-line no-unused-vars requirejs.config({ baseUrl: "js/lib", |