Skip to content

Commit 5442de2

Browse files
ActionList: Remove it from icinga behavior
1 parent 239fb48 commit 5442de2

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

asset/js/widget/ActionList.js

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
1-
/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */
2-
3-
;(function (Icinga) {
1+
define(["../notjQuery"], function (notjQuery) {
42

53
"use strict";
6-
7-
try {
8-
var notjQuery = require('icinga/icinga-php-library/notjQuery');
9-
} catch (e) {
10-
console.warn('Unable to provide input enrichments. Libraries not available:', e);
11-
return;
12-
}
13-
14-
Icinga.Behaviors = Icinga.Behaviors || {};
15-
16-
class ActionList extends Icinga.EventListener {
17-
constructor(icinga) {
18-
super(icinga);
19-
4+
class ActionList {
5+
constructor() {
206
this.on('click', '.action-list [data-action-item]:not(.page-separator), .action-list [data-action-item] a[href]', this.onClick, this);
217
this.on('close-column', '#main > #col2', this.onColumnClose, this);
228
this.on('column-moved', this.onColumnMoved, this);
@@ -784,6 +770,5 @@
784770
}
785771
}
786772

787-
Icinga.Behaviors.ActionList = ActionList;
788-
789-
}(Icinga));
773+
return ActionList;
774+
});

0 commit comments

Comments
 (0)