add label for code indentation
parent
7f2b7fc287
commit
ae0b2ca1a8
customize.dist/translations
www/settings
|
@ -468,6 +468,8 @@ define(function () {
|
|||
out.settings_logoutEverywhere = "Force log out of all other web sessions";
|
||||
out.settings_logoutEverywhereConfirm = "Are you sure? You will need to log in with all your devices.";
|
||||
|
||||
out.settings_codeIndentation = 'Code editor indentation (spaces)';
|
||||
|
||||
out.upload_title = "File upload";
|
||||
out.upload_serverError = "Server Error: unable to upload your file at this time.";
|
||||
out.upload_uploadPending = "You already have an upload in progress. Cancel it and upload your new file?";
|
||||
|
|
|
@ -129,10 +129,10 @@ define([
|
|||
var createIndentUnitSelector = function (obj) {
|
||||
var proxy = obj.proxy;
|
||||
|
||||
console.log('create indent unit selector');
|
||||
var $div = $('<div>', {
|
||||
'class': 'indentUnit element'
|
||||
});
|
||||
$('<label>').text(Messages.settings_codeIndentation).appendTo($div);
|
||||
|
||||
var $inputBlock = $('<div>', {
|
||||
'class': 'inputBlock',
|
||||
|
@ -144,7 +144,6 @@ define([
|
|||
type: 'number',
|
||||
}).on('change', function () {
|
||||
var val = parseInt($input.val());
|
||||
console.log(val, typeof(val));
|
||||
if (typeof(val) !== 'number') { return; }
|
||||
proxy['cryptpad.indentUnit'] = val;
|
||||
}).appendTo($inputBlock);
|
||||
|
|
Loading…
Reference in New Issue