|
|
@ -9,7 +9,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
var USERNAME_KEY = 'cryptpad.username';
|
|
|
|
var USERNAME_KEY = 'cryptpad.username';
|
|
|
|
|
|
|
|
|
|
|
|
var APP = {
|
|
|
|
var APP = window.APP = {
|
|
|
|
Cryptpad: Cryptpad,
|
|
|
|
Cryptpad: Cryptpad,
|
|
|
|
_onRefresh: []
|
|
|
|
_onRefresh: []
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -173,14 +173,18 @@ define([
|
|
|
|
var $label = $('<label>', { 'for': 'userFeedback'})
|
|
|
|
var $label = $('<label>', { 'for': 'userFeedback'})
|
|
|
|
.text(Messages.settings_userFeedback);
|
|
|
|
.text(Messages.settings_userFeedback);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$div.html('<hr />' + Messages.settings_userFeedbackHint1 + '<br />' +
|
|
|
|
|
|
|
|
Messages.settings_userFeedbackHint2).appendTo($div);
|
|
|
|
|
|
|
|
|
|
|
|
$('<br>').appendTo($div);
|
|
|
|
$('<br>').appendTo($div);
|
|
|
|
|
|
|
|
|
|
|
|
var $checkbox = $('<input>', {
|
|
|
|
var $checkbox = $('<input>', {
|
|
|
|
'type': 'checkbox',
|
|
|
|
'type': 'checkbox',
|
|
|
|
}).on('change', function () {
|
|
|
|
}).on('change', function () {
|
|
|
|
obj.proxy.allowUserFeedback = $checkbox.is(':checked') || false;
|
|
|
|
obj.proxy.allowUserFeedback = $checkbox.is(':checked') || false;
|
|
|
|
console.log("wut");
|
|
|
|
|
|
|
|
console.log($box.is(':checked'));
|
|
|
|
// TODO provide feedback to show if this is synced
|
|
|
|
|
|
|
|
settle(function () {});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$checkbox.appendTo($div);
|
|
|
|
$checkbox.appendTo($div);
|
|
|
|