add label for code indentation

This commit is contained in:
ansuz
2017-08-11 12:55:10 +02:00
parent 7f2b7fc287
commit ae0b2ca1a8
2 changed files with 3 additions and 2 deletions

View 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);