diff --git a/lib/commands/quota.js b/lib/commands/quota.js index 97213e02b..849a30e17 100644 --- a/lib/commands/quota.js +++ b/lib/commands/quota.js @@ -2,7 +2,7 @@ /* globals Buffer*/ const Quota = module.exports; -const Util = require("../common-util"); +//const Util = require("../common-util"); const Keys = require("../keys"); const Package = require('../../package.json'); const Https = require("https"); diff --git a/www/common/inner/access.js b/www/common/inner/access.js index c804ee0b8..ad9f28a94 100644 --- a/www/common/inner/access.js +++ b/www/common/inner/access.js @@ -900,7 +900,6 @@ define([ } if (owned) { var deleteOwned = h('button.btn.btn-danger-alt', Messages.fc_delete_owned); - var $deleteOwned; var spinner = UI.makeSpinner(); UI.confirmButton(deleteOwned, { classes: 'btn-danger' diff --git a/www/pad/comment.js b/www/pad/comment.js index a44431b47..a34ee0577 100644 --- a/www/pad/comment.js +++ b/www/pad/comment.js @@ -68,7 +68,7 @@ }; // Register the command. - var command = editor.plugins.comments.command = editor.addCommand('comment', { + editor.plugins.comments.command = editor.addCommand('comment', { exec: function(editor) { if (editor.readOnly) { return; } editor.focus(); diff --git a/www/pad/inner.js b/www/pad/inner.js index 66f94d035..0ab12ddb3 100644 --- a/www/pad/inner.js +++ b/www/pad/inner.js @@ -1001,13 +1001,14 @@ define([ YAY! */ - CKEDITOR.dom.element.prototype.setHtml = function(a){ + Ckeditor.dom.element.prototype.setHtml = function(a){ if (/callFunction/.test(a)) { a = a.replace(/on(mousedown|blur|keydown|focus|click|dragstart)/g, function (value) { return 'o' + value; }); } - return this.$.innerHTML=a; + this.$.innerHTML = a; + return a; }; module.ckeditor = editor = Ckeditor.replace('editor1', {