From f931574dacd61ef27a0c3bf3392c7db1b2a83f65 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 9 Nov 2017 17:23:13 +0100 Subject: [PATCH] lint compliance --- www/common/migrate-user-object.js | 4 ++-- www/settings/inner.js | 14 +++++++------- www/settings/main.js | 7 +++++-- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/www/common/migrate-user-object.js b/www/common/migrate-user-object.js index 8dbd5f038..00414113a 100644 --- a/www/common/migrate-user-object.js +++ b/www/common/migrate-user-object.js @@ -67,7 +67,7 @@ define([], function () { // Migration 4: allowUserFeedback to settings - var migrateLanguage = function () { + var migrateFeedback = function () { var settings = userObject.settings = userObject.settings || {}; if (typeof(userObject['allowUserFeedback']) !== "undefined") { settings.general = settings.general || {}; @@ -76,7 +76,7 @@ define([], function () { } }; if (version < 4) { - migrateLanguage(); + migrateFeedback(); Cryptpad.feedback('Migrate-4', true); userObject.version = version = 4; } diff --git a/www/settings/inner.js b/www/settings/inner.js index af0ba78b6..6050f6855 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -4,8 +4,8 @@ define([ '/common/cryptpad-common.js', '/bower_components/nthen/index.js', '/common/sframe-common.js', - '/customize/pages.js', + '/bower_components/file-saver/FileSaver.min.js', 'css!/bower_components/bootstrap/dist/css/bootstrap.min.css', 'less!/bower_components/components-font-awesome/css/font-awesome.min.css', 'less!/customize/src/less2/main.less', @@ -14,10 +14,10 @@ define([ Toolbar, Cryptpad, nThen, - SFCommon, - Pages + SFCommon ) { + var saveAs = window.saveAs; var Messages = Cryptpad.Messages; var APP = window.APP = { Cryptpad: Cryptpad, @@ -151,7 +151,7 @@ define([ return $div; }; - var createIndentTypeSelector = function (obj) { + var createIndentTypeSelector = function () { var key = 'indentWithTabs'; var $div = $('
', { @@ -305,7 +305,7 @@ define([ return $div; }; - var createResetDrive = function (obj) { + var createResetDrive = function () { var $div = $('
', {'class': 'cp-settings-reset-drive cp-sidebarlayout-element'}); $('