mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
removed unnecessary console.log
This commit is contained in:
parent
924c5d65cb
commit
c1acce17cc
2
app/assets/javascripts/external/bootbox.js
vendored
2
app/assets/javascripts/external/bootbox.js
vendored
@ -399,7 +399,6 @@ var bootbox = window.bootbox || (function(document, $) {
|
||||
div.find(".modal-body").html(str);
|
||||
|
||||
function onCancel(source) {
|
||||
console.log('onCancel');
|
||||
// for now source is unused, but it will be in future
|
||||
var hideModal = null;
|
||||
if (typeof options.onEscape === 'function') {
|
||||
@ -414,7 +413,6 @@ var bootbox = window.bootbox || (function(document, $) {
|
||||
|
||||
// hook into the modal's keyup trigger to check for the escape key
|
||||
div.on('keyup.dismiss.modal', function(e) {
|
||||
console.log('keyup.dismiss.modal');
|
||||
// any truthy value passed to onEscape will dismiss the dialog
|
||||
// as long as the onEscape function (if defined) doesn't prevent it
|
||||
if (e.which === 27 && options.onEscape !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user