Skip to content

Commit

Permalink
Change log from warn to info
Browse files Browse the repository at this point in the history
  • Loading branch information
floranpagliai committed Oct 27, 2023
1 parent 17a89ab commit 6217c7b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/jquery.brokk.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ---------------------------------
// ---------- BrokkJS ----------
// ---------------------------------
// Brief plugin description
// Lightweight plugin to make ajax call and block rendering
// ------------------------
;(function ($, window, document, undefined) {

Expand Down Expand Up @@ -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') {
Expand Down Expand Up @@ -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], {});
}
};
Expand Down Expand Up @@ -225,5 +224,4 @@
this.onSubmit(args);
},
};

})(jQuery, window, document);

0 comments on commit 6217c7b

Please sign in to comment.