lint compliance

pull/1/head
yflory 5 years ago
parent f3662ab7de
commit 04af753a81

@ -2,7 +2,7 @@
/* globals Buffer*/ /* globals Buffer*/
const Quota = module.exports; const Quota = module.exports;
const Util = require("../common-util"); //const Util = require("../common-util");
const Keys = require("../keys"); const Keys = require("../keys");
const Package = require('../../package.json'); const Package = require('../../package.json');
const Https = require("https"); const Https = require("https");

@ -900,7 +900,6 @@ define([
} }
if (owned) { if (owned) {
var deleteOwned = h('button.btn.btn-danger-alt', Messages.fc_delete_owned); var deleteOwned = h('button.btn.btn-danger-alt', Messages.fc_delete_owned);
var $deleteOwned;
var spinner = UI.makeSpinner(); var spinner = UI.makeSpinner();
UI.confirmButton(deleteOwned, { UI.confirmButton(deleteOwned, {
classes: 'btn-danger' classes: 'btn-danger'

@ -68,7 +68,7 @@
}; };
// Register the command. // Register the command.
var command = editor.plugins.comments.command = editor.addCommand('comment', { editor.plugins.comments.command = editor.addCommand('comment', {
exec: function(editor) { exec: function(editor) {
if (editor.readOnly) { return; } if (editor.readOnly) { return; }
editor.focus(); editor.focus();

@ -1001,13 +1001,14 @@ define([
YAY! YAY!
*/ */
CKEDITOR.dom.element.prototype.setHtml = function(a){ Ckeditor.dom.element.prototype.setHtml = function(a){
if (/callFunction/.test(a)) { if (/callFunction/.test(a)) {
a = a.replace(/on(mousedown|blur|keydown|focus|click|dragstart)/g, function (value) { a = a.replace(/on(mousedown|blur|keydown|focus|click|dragstart)/g, function (value) {
return 'o' + value; return 'o' + value;
}); });
} }
return this.$.innerHTML=a; this.$.innerHTML = a;
return a;
}; };
module.ckeditor = editor = Ckeditor.replace('editor1', { module.ckeditor = editor = Ckeditor.replace('editor1', {

Loading…
Cancel
Save