Skip to content
Snippets Groups Projects
Commit 10cfd290 authored by connorhaugh's avatar connorhaugh
Browse files

fix: remove console log

parent ed5287a8
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,6 @@ function LtiConsumerXBlock(runtime, element) { ...@@ -102,7 +102,6 @@ function LtiConsumerXBlock(runtime, element) {
// Apply click handler to new window launch button // Apply click handler to new window launch button
$element.find('.btn-lti-new-window').click(function(){ $element.find('.btn-lti-new-window').click(function(){
var launch = true;
// If this instance is configured to require username and/or email, ask user if it is okay to send them // If this instance is configured to require username and/or email, ask user if it is okay to send them
// Do not launch if it is not okay // Do not launch if it is not okay
...@@ -113,19 +112,19 @@ function LtiConsumerXBlock(runtime, element) { ...@@ -113,19 +112,19 @@ function LtiConsumerXBlock(runtime, element) {
.html('<div><h6>' + message + '</h6></div>') .html('<div><h6>' + message + '</h6></div>')
.dialog({ .dialog({
modal: true, modal: true,
title: 'Confirm', //TODO: int8lize these title: 'Confirm',
zIndex: 10000, zIndex: 10000,
autoOpen: true, autoOpen: true,
width: 'auto', width: 'auto',
resizable: false, resizable: false,
buttons: { buttons: {
Yes: function() { Yes: function() {
$('body').append('<h1>Confirm Dialog Result: <i>Yes</i></h1>'); //TODO: int8lize these $('body').append('<h1>Confirm Dialog Result: <i>Yes</i></h1>');
def.resolve("Yes"); def.resolve("OK");
$(this).dialog("close"); $(this).dialog("close");
}, },
No: function() { No: function() {
$('body').append('<h1>Confirm Dialog Result: <i>No</i></h1>'); //TODO: int8lize these $('body').append('<h1>Confirm Dialog Result: <i>No</i></h1>');
def.resolve("No"); def.resolve("No");
$(this).dialog("close"); $(this).dialog("close");
} }
...@@ -151,9 +150,7 @@ function LtiConsumerXBlock(runtime, element) { ...@@ -151,9 +150,7 @@ function LtiConsumerXBlock(runtime, element) {
$.when(confirmDialog(msg)).then( $.when(confirmDialog(msg)).then(
function(status) { function(status) {
if (status == "Yes") { if (status == "Ok") {
console.log(destination);
//do the next step
window.open(destination); window.open(destination);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment