Skip to content

Commit

Permalink
ActionList: Remove it from icinga behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Jun 26, 2024
1 parent 239fb48 commit 0d51d73
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions asset/js/widget/ActionList.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */

;(function (Icinga) {
define(["../notjQuery"], function (notjQuery) {

"use strict";

try {
var notjQuery = require('icinga/icinga-php-library/notjQuery');
} catch (e) {
console.warn('Unable to provide input enrichments. Libraries not available:', e);
return;
}

Icinga.Behaviors = Icinga.Behaviors || {};

class ActionList extends Icinga.EventListener {
constructor(icinga) {
super(icinga);

class ActionList {
constructor() {
this.on('click', '.action-list [data-action-item]:not(.page-separator), .action-list [data-action-item] a[href]', this.onClick, this);
this.on('close-column', '#main > #col2', this.onColumnClose, this);
this.on('column-moved', this.onColumnMoved, this);
Expand Down Expand Up @@ -784,6 +770,6 @@
}
}

Icinga.Behaviors.ActionList = ActionList;
return ActionList;

}(Icinga));
});

0 comments on commit 0d51d73

Please sign in to comment.