From 6217c7baaa98688526f3444e8f88caded358a38d Mon Sep 17 00:00:00 2001 From: Floran Pagliai Date: Fri, 27 Oct 2023 12:27:11 +0200 Subject: [PATCH] Change log from warn to info --- src/jquery.brokk.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/jquery.brokk.js b/src/jquery.brokk.js index 4319661..fe03bf1 100644 --- a/src/jquery.brokk.js +++ b/src/jquery.brokk.js @@ -1,7 +1,7 @@ // --------------------------------- // ---------- BrokkJS ---------- // --------------------------------- -// Brief plugin description +// Lightweight plugin to make ajax call and block rendering // ------------------------ ;(function ($, window, document, undefined) { @@ -57,7 +57,6 @@ } plugin.fire(); }); - plugin.$element.on('keypress' + '.' + plugin._name, function (e) { var keycode = (e.keyCode ? e.keyCode : e.which); if ($(this).prop('disabled') || keycode !== '13') { @@ -183,7 +182,7 @@ if (typeof this[0] !== 'undefined') { return $.data(this[0], "plugin_" + pluginName); } else { - console.warn('This element was not initialized with Brokk.'); + console.info('This element was not initialized with Brokk.'); return new Plugin(this[0], {}); } }; @@ -225,5 +224,4 @@ this.onSubmit(args); }, }; - })(jQuery, window, document);