diff --git a/frontend-js/src/main/js/gui/admin/AbstractAdminPanel.js b/frontend-js/src/main/js/gui/admin/AbstractAdminPanel.js
index d74a6d09e38c6ae415384724e725dbf6c95b8c20..de2f5ab236e80681e64801a74a6cced63f4c7577 100644
--- a/frontend-js/src/main/js/gui/admin/AbstractAdminPanel.js
+++ b/frontend-js/src/main/js/gui/admin/AbstractAdminPanel.js
@@ -5,6 +5,7 @@
 
 var Panel = require('../Panel');
 
+// noinspection JSUnusedLocalSymbols
 var logger = require('../../logger');
 var Functions = require('../../Functions');
 var Promise = require("bluebird");
@@ -18,15 +19,38 @@ function AbstractAdminPanel(params) {
 AbstractAdminPanel.prototype = Object.create(Panel.prototype);
 AbstractAdminPanel.prototype.constructor = AbstractAdminPanel;
 
-AbstractAdminPanel.prototype._createHeader = function(name) {
+AbstractAdminPanel.prototype._createHeader = function (name) {
   this.getElement().appendChild(Functions.createElement({
-    type : "h1",
-    content : name
+    type: "h1",
+    content: name
   }));
 };
 
-AbstractAdminPanel.prototype.init = function() {
+AbstractAdminPanel.prototype.init = function () {
 
 };
 
+AbstractAdminPanel.prototype.askConfirmRemoval = function (params) {
+  return new Promise(function (resolve) {
+    $('<form><input type="text" style="z-index:10000" name="name"><br></form>').dialog({
+      modal: true,
+      title: params.title,
+      close: function () {
+        $(this).dialog('destroy').remove();
+        resolve({status: false});
+      },
+      buttons: {
+        'OK': function () {
+          $(this).dialog('destroy').remove();
+          resolve({reason: $('input[name="name"]').val(), status: true});
+        },
+        'Cancel': function () {
+          $(this).dialog('destroy').remove();
+          resolve({status: false});
+        }
+      }
+    });
+  })
+};
+
 module.exports = AbstractAdminPanel;
diff --git a/frontend-js/src/main/js/gui/admin/CommentsAdminPanel.js b/frontend-js/src/main/js/gui/admin/CommentsAdminPanel.js
index 9bb28be683532ea7e618a7dfef493fb90b5f7aa1..42f048a0f114a6ea032af98eaf9e58dec9fd0a3f 100644
--- a/frontend-js/src/main/js/gui/admin/CommentsAdminPanel.js
+++ b/frontend-js/src/main/js/gui/admin/CommentsAdminPanel.js
@@ -211,27 +211,5 @@ CommentsAdminPanel.prototype.destroy = function () {
   }
 };
 
-CommentsAdminPanel.prototype.askConfirmRemoval = function (params) {
-  return new Promise(function (resolve) {
-    $('<form><input type="text" style="z-index:10000" name="name"><br></form>').dialog({
-      modal: true,
-      title: params.title,
-      close: function () {
-        $(this).dialog('destroy').remove();
-        resolve({status: false});
-      },
-      buttons: {
-        'OK': function () {
-          $(this).dialog('destroy').remove();
-          resolve({reason: $('input[name="name"]').val(), status: true});
-        },
-        'Cancel': function () {
-          $(this).dialog('destroy').remove();
-          resolve({status: false});
-        }
-      }
-    });
-  })
-};
 
 module.exports = CommentsAdminPanel;