mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
linting
This commit is contained in:
parent
ea64d9b068
commit
a386f7782f
@ -52,7 +52,7 @@ nThen(function (w) {
|
||||
if (err) { console.log(err); return; }
|
||||
printLink();
|
||||
}));
|
||||
}).nThen(function (w) {
|
||||
}).nThen(function () {
|
||||
if (!Env.admins.length) {
|
||||
Env.Log.info('NO_ADMIN_CONFIGURED', {
|
||||
message: `Your instance is not correctly configured for production usage. Review its checkup page for more information.`,
|
||||
|
||||
@ -981,7 +981,6 @@ define([
|
||||
$input.val(hex);
|
||||
onColorPicked();
|
||||
});
|
||||
var $colors = $(colors);
|
||||
|
||||
$(label).append(colors);
|
||||
let form = blocks.form([
|
||||
|
||||
@ -17,11 +17,10 @@ define([
|
||||
'/customize/pages.js',
|
||||
'/common/rpc.js',
|
||||
'onboardscreen.js',
|
||||
'/common/inner/sidebar-layout.js',
|
||||
|
||||
'less!/install/onboarding.less',
|
||||
'css!/components/components-font-awesome/css/font-awesome.min.css',
|
||||
], function ($, Login, Cryptpad, /*Test,*/ Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h, Pages, Rpc, OnboardScreen, Sidebar) {
|
||||
], function ($, Login, Cryptpad, /*Test,*/ Cred, UI, Util, Realtime, Constants, Feedback, LocalStore, h, Pages, Rpc, OnboardScreen) {
|
||||
if (window.top !== window) { return; }
|
||||
var Messages = Cryptpad.Messages;
|
||||
$(function () {
|
||||
|
||||
@ -136,7 +136,7 @@ define([
|
||||
if (hasError) {
|
||||
UI.alert(Messages.onboarding_save_error, function () {
|
||||
document.location.href = '/drive/';
|
||||
})
|
||||
});
|
||||
return;
|
||||
}
|
||||
document.location.href = '/drive/';
|
||||
@ -233,7 +233,6 @@ define([
|
||||
if (selections.colorId) {
|
||||
colors.setValue(selections.colorId);
|
||||
}
|
||||
var $colors = $(colors).attr('id', 'cp-install-color');
|
||||
var content = h('div.cp-onboardscreen-colorpick', [
|
||||
h('label', {for:'cp-install-color'}, Messages.kanban_color),
|
||||
colors
|
||||
@ -242,7 +241,7 @@ define([
|
||||
return content;
|
||||
};
|
||||
|
||||
var button = blocks.activeButton('primary', '', Messages.continue, function (done) {
|
||||
var button = blocks.activeButton('primary', '', Messages.continue, function () {
|
||||
selections.title = $(titleInput).val() || '';
|
||||
selections.description = $(description).val() || '';
|
||||
if (dataURL) {
|
||||
@ -330,7 +329,7 @@ define([
|
||||
const grid = createAppsGrid(appsToDisable);
|
||||
|
||||
|
||||
var save = blocks.activeButton('primary', '', Messages.continue, function (done) {
|
||||
var save = blocks.activeButton('primary', '', Messages.continue, function () {
|
||||
gotoPage(Env, 2);
|
||||
});
|
||||
|
||||
@ -363,7 +362,7 @@ define([
|
||||
label: 'registration',
|
||||
query: function (val, setState) {
|
||||
selections.closeRegistration = val;
|
||||
setState(val)
|
||||
setState(val);
|
||||
},
|
||||
});
|
||||
|
||||
@ -375,7 +374,7 @@ define([
|
||||
label: 'forcemfa',
|
||||
query: function (val, setState) {
|
||||
selections.mfa = val;
|
||||
setState(val)
|
||||
setState(val);
|
||||
},
|
||||
});
|
||||
|
||||
@ -394,7 +393,6 @@ define([
|
||||
], 'cp-admin-customize-options-grid');
|
||||
|
||||
var save = blocks.activeButton('primary', '', Messages.settings_save, function () {
|
||||
|
||||
saveAndRedirect(Env);
|
||||
});
|
||||
|
||||
|
||||
@ -367,7 +367,6 @@ define([
|
||||
|
||||
// Colors
|
||||
var $colors = $(colors);
|
||||
var selectedColor = '';
|
||||
var resetThemeClass = function () {
|
||||
$colors.find('.cp-palette-color').each(function (i, el) {
|
||||
var $c = $(el);
|
||||
@ -438,7 +437,7 @@ define([
|
||||
|
||||
$modal.find('nav button.danger').prop('disabled', unlocked ? '' : 'disabled');
|
||||
offline = !unlocked;
|
||||
palette.disable(offline);
|
||||
colors.disable(offline);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user