Skip to content

Commit

Permalink
Merge pull request #4700 from moisseev/webui
Browse files Browse the repository at this point in the history
[Minor] Remove obsolete code
  • Loading branch information
vstakhov committed Nov 14, 2023
2 parents af7a158 + 4bc8131 commit 051aca6
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 15 deletions.
9 changes: 0 additions & 9 deletions interface/js/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion interface/js/app/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
THE SOFTWARE.
*/

/* global d3:false, FooTable:false */
/* global d3, FooTable */

define(["jquery", "d3evolution", "d3pie", "footable"],
function ($, D3Evolution, D3Pie) {
Expand Down
2 changes: 1 addition & 1 deletion interface/js/app/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
THE SOFTWARE.
*/

/* global d3:false FooTable:false */
/* global d3, FooTable */

define(["jquery", "footable"],
function ($) {
Expand Down
2 changes: 1 addition & 1 deletion interface/js/app/rspamd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion interface/js/app/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
THE SOFTWARE.
*/

/* global d3:false */
/* global d3 */

define(["jquery", "d3pie"],
function ($, D3Pie) {
Expand Down
2 changes: 1 addition & 1 deletion interface/js/app/symbols.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
THE SOFTWARE.
*/

/* global FooTable:false */
/* global FooTable */

define(["jquery", "footable"],
function ($) {
Expand Down
2 changes: 1 addition & 1 deletion interface/js/main.js
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 051aca6

Please sign in to comment.