|
|
@ -39,7 +39,6 @@ define([
|
|
|
|
'account': [
|
|
|
|
'account': [
|
|
|
|
'infoBlock',
|
|
|
|
'infoBlock',
|
|
|
|
'displayName',
|
|
|
|
'displayName',
|
|
|
|
'indentUnit',
|
|
|
|
|
|
|
|
'languageSelector',
|
|
|
|
'languageSelector',
|
|
|
|
'logoutEverywhere',
|
|
|
|
'logoutEverywhere',
|
|
|
|
'resetTips',
|
|
|
|
'resetTips',
|
|
|
@ -49,6 +48,9 @@ define([
|
|
|
|
'backupDrive',
|
|
|
|
'backupDrive',
|
|
|
|
'importLocalPads',
|
|
|
|
'importLocalPads',
|
|
|
|
'resetDrive'
|
|
|
|
'resetDrive'
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
'code': [
|
|
|
|
|
|
|
|
'indentUnit',
|
|
|
|
]
|
|
|
|
]
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -129,10 +131,10 @@ define([
|
|
|
|
var createIndentUnitSelector = function (obj) {
|
|
|
|
var createIndentUnitSelector = function (obj) {
|
|
|
|
var proxy = obj.proxy;
|
|
|
|
var proxy = obj.proxy;
|
|
|
|
|
|
|
|
|
|
|
|
console.log('create indent unit selector');
|
|
|
|
|
|
|
|
var $div = $('<div>', {
|
|
|
|
var $div = $('<div>', {
|
|
|
|
'class': 'indentUnit element'
|
|
|
|
'class': 'indentUnit element'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$('<label>').text(Messages.settings_codeIndentation).appendTo($div);
|
|
|
|
|
|
|
|
|
|
|
|
var $inputBlock = $('<div>', {
|
|
|
|
var $inputBlock = $('<div>', {
|
|
|
|
'class': 'inputBlock',
|
|
|
|
'class': 'inputBlock',
|
|
|
@ -144,7 +146,6 @@ define([
|
|
|
|
type: 'number',
|
|
|
|
type: 'number',
|
|
|
|
}).on('change', function () {
|
|
|
|
}).on('change', function () {
|
|
|
|
var val = parseInt($input.val());
|
|
|
|
var val = parseInt($input.val());
|
|
|
|
console.log(val, typeof(val));
|
|
|
|
|
|
|
|
if (typeof(val) !== 'number') { return; }
|
|
|
|
if (typeof(val) !== 'number') { return; }
|
|
|
|
proxy['cryptpad.indentUnit'] = val;
|
|
|
|
proxy['cryptpad.indentUnit'] = val;
|
|
|
|
}).appendTo($inputBlock);
|
|
|
|
}).appendTo($inputBlock);
|
|
|
@ -380,6 +381,7 @@ define([
|
|
|
|
var $category = $('<div>', {'class': 'category'}).appendTo($categories);
|
|
|
|
var $category = $('<div>', {'class': 'category'}).appendTo($categories);
|
|
|
|
if (key === 'account') { $category.append($('<span>', {'class': 'fa fa-user-o'})); }
|
|
|
|
if (key === 'account') { $category.append($('<span>', {'class': 'fa fa-user-o'})); }
|
|
|
|
if (key === 'drive') { $category.append($('<span>', {'class': 'fa fa-hdd-o'})); }
|
|
|
|
if (key === 'drive') { $category.append($('<span>', {'class': 'fa fa-hdd-o'})); }
|
|
|
|
|
|
|
|
if (key === 'code') { $category.append($('<span>', {'class': 'fa fa-file-code-o' })); }
|
|
|
|
|
|
|
|
|
|
|
|
if (key === active) {
|
|
|
|
if (key === active) {
|
|
|
|
$category.addClass('active');
|
|
|
|
$category.addClass('active');
|
|
|
|