Remove unnecessary TODOs

pull/1/head
yflory 8 years ago
parent d92a875ce5
commit 71c59d7ae2

@ -715,7 +715,6 @@ define([
var second = function (CM) { var second = function (CM) {
Cryptpad.ready(function (err, env) { Cryptpad.ready(function (err, env) {
// TODO handle error
andThen(CM); andThen(CM);
}); });
Cryptpad.onError(function (info) { Cryptpad.onError(function (info) {
@ -728,7 +727,6 @@ define([
var first = function () { var first = function () {
if (ifrw.CodeMirror) { if (ifrw.CodeMirror) {
// it exists, call your continuation // it exists, call your continuation
//andThen(ifrw.CodeMirror);
second(ifrw.CodeMirror); second(ifrw.CodeMirror);
} else { } else {
console.log("CodeMirror was not defined. Trying again in %sms", interval); console.log("CodeMirror was not defined. Trying again in %sms", interval);

@ -1403,7 +1403,7 @@ define([
onElementClick(e, $element); onElementClick(e, $element);
}); });
$element.contextmenu(openDefaultContextMenu); $element.contextmenu(openDefaultContextMenu);
$element.data('context', $defaultContextMenu); // TODO: hide the "delete" link in that context menu $element.data('context', $defaultContextMenu);
$container.append($element); $container.append($element);
}); });
}; };

@ -734,7 +734,6 @@ define([
console.log("Aborting the session!"); console.log("Aborting the session!");
// stop the user from continuing to edit // stop the user from continuing to edit
setEditable(false); setEditable(false);
// TODO inform them that the session was torn down
toolbar.failed(); toolbar.failed();
Cryptpad.alert(Messages.common_connectionLost, undefined, true); Cryptpad.alert(Messages.common_connectionLost, undefined, true);
}; };
@ -797,7 +796,6 @@ define([
var interval = 100; var interval = 100;
var second = function (Ckeditor) { var second = function (Ckeditor) {
Cryptpad.ready(function (err, env) { Cryptpad.ready(function (err, env) {
// TODO handle error
andThen(Ckeditor); andThen(Ckeditor);
}); });
Cryptpad.onError(function (info) { Cryptpad.onError(function (info) {
@ -810,7 +808,6 @@ define([
var first = function () { var first = function () {
Ckeditor = ifrw.CKEDITOR; Ckeditor = ifrw.CKEDITOR;
if (Ckeditor) { if (Ckeditor) {
//andThen(Ckeditor);
// mobile configuration // mobile configuration
Ckeditor.config.toolbarCanCollapse = true; Ckeditor.config.toolbarCanCollapse = true;
Ckeditor.config.height = '72vh'; Ckeditor.config.height = '72vh';

@ -500,7 +500,6 @@ define([
}; };
// special UI elements // special UI elements
//var $title = $('#title').attr('placeholder', Messages.poll_titleHint || 'title'); TODO
var $description = $('#description').attr('placeholder', Messages.poll_descriptionHint || 'description'); var $description = $('#description').attr('placeholder', Messages.poll_descriptionHint || 'description');
var ready = function (info, userid, readOnly) { var ready = function (info, userid, readOnly) {

@ -646,7 +646,7 @@ define([
}); });
var $testColor = $('<input>', { type: 'color', value: '!' }); var $testColor = $('<input>', { type: 'color', value: '!' });
var $check = $pad.contents().find("#colorPicker_check"); var $check = $pad.contents().find("#colorPicker_check");
if ($testColor.attr('type') !== "color" || $testColor.val() === '!') { return; } // TODO if ($testColor.attr('type') !== "color" || $testColor.val() === '!') { return; }
$back.on('click', function() { $back.on('click', function() {
var $picker = $('<input>', { type: 'color', value: backColor }) var $picker = $('<input>', { type: 'color', value: backColor })
.css({ display: 'none', }) .css({ display: 'none', })
@ -908,7 +908,6 @@ define([
var second = function (CM) { var second = function (CM) {
Cryptpad.ready(function (err, env) { Cryptpad.ready(function (err, env) {
// TODO handle error
andThen(CM); andThen(CM);
}); });
Cryptpad.onError(function (info) { Cryptpad.onError(function (info) {
@ -921,7 +920,6 @@ define([
var first = function () { var first = function () {
if (ifrw.CodeMirror) { if (ifrw.CodeMirror) {
// it exists, call your continuation // it exists, call your continuation
//andThen(ifrw.CodeMirror);
second(ifrw.CodeMirror); second(ifrw.CodeMirror);
} else { } else {
console.log("CodeMirror was not defined. Trying again in %sms", interval); console.log("CodeMirror was not defined. Trying again in %sms", interval);

Loading…
Cancel
Save