Modernize panel scripts
Change-Id: I36b37cc1816213c72ddbd9a8f8e5b163c9e2b87f
diff --git a/dev/js/src/panel/query.js b/dev/js/src/panel/query.js
index 7f66f9f..d2bf80f 100644
--- a/dev/js/src/panel/query.js
+++ b/dev/js/src/panel/query.js
@@ -3,6 +3,8 @@
*
* @author Nils Diewald
*/
+"use strict";
+
define([
'panel'
], function (panelClass) {
@@ -20,14 +22,15 @@
// Initialize panel
_init : function (opened) {
this._opened = opened;
- var a = this.actions;
+ const a = this.actions;
// If plugins are enabled, add all buttons for the query panel
if (KorAP.Plugin) {
- var queryButtons = KorAP.Plugin.buttonGroup("query");
// Add all matchbuttons in order
- queryButtons.forEach(i => a.add.apply(a, i));
+ KorAP.Plugin
+ .buttonGroup("query")
+ .forEach(i => a.add.apply(a, i));
KorAP.Plugin.clearButtonGroup("query")
};