Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
commit
f5f8e148ca
@ -42,6 +42,11 @@ define([
|
||||
sig: sig
|
||||
};
|
||||
}
|
||||
} else if (data.cmd === 'UPDATE_LIMIT') {
|
||||
return Cryptpad.updatePinLimit(function (e, limit, plan, note) {
|
||||
ret.res = [limit, plan, note];
|
||||
srcWindow.postMessage(JSON.stringify(ret), domain);
|
||||
});
|
||||
} else {
|
||||
ret.error = "UNKNOWN_CMD";
|
||||
}
|
||||
|
||||
@ -86,6 +86,13 @@
|
||||
max-width: 40vw;
|
||||
margin: auto;
|
||||
}
|
||||
#preview table tr td, #preview table tr th {
|
||||
border: 1px solid black;
|
||||
padding: 15px;
|
||||
}
|
||||
#preview table tr th {
|
||||
border: 3px solid black;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -304,7 +304,10 @@ define([
|
||||
|
||||
onLocal(); // push local state to avoid parse errors later.
|
||||
|
||||
if (readOnly) { return; }
|
||||
if (readOnly) {
|
||||
config.onRemote();
|
||||
return;
|
||||
}
|
||||
UserList.getLastName(toolbar.$userNameButton, isNew);
|
||||
};
|
||||
|
||||
|
||||
@ -744,17 +744,17 @@ define([
|
||||
|
||||
common.updatePinLimit = function (cb) {
|
||||
if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); }
|
||||
rpc.updatePinLimits(function (e, limit, plan) {
|
||||
rpc.updatePinLimits(function (e, limit, plan, note) {
|
||||
if (e) { return cb(e); }
|
||||
cb(e, limit, plan);
|
||||
cb(e, limit, plan, note);
|
||||
});
|
||||
};
|
||||
|
||||
common.getPinLimit = function (cb) {
|
||||
if (!pinsReady()) { return void cb('[RPC_NOT_READY]'); }
|
||||
rpc.getLimit(function (e, limit, plan) {
|
||||
rpc.getLimit(function (e, limit, plan, note) {
|
||||
if (e) { return cb(e); }
|
||||
cb(void 0, limit, plan);
|
||||
cb(void 0, limit, plan, note);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -133,7 +133,7 @@ define([
|
||||
rpc.send('UPDATE_LIMITS', undefined, function (e, response) {
|
||||
if (e) { return void cb(e); }
|
||||
if (response && response.length && typeof(response[0]) === "number") {
|
||||
cb (void 0, response[0], response[1]);
|
||||
cb (void 0, response[0], response[1], response[2]);
|
||||
} else {
|
||||
cb('INVALID_RESPONSE');
|
||||
}
|
||||
@ -144,7 +144,7 @@ define([
|
||||
rpc.send('GET_LIMIT', undefined, function (e, response) {
|
||||
if (e) { return void cb(e); }
|
||||
if (response && response.length && typeof(response[0]) === "number") {
|
||||
cb (void 0, response[0], response[1]);
|
||||
cb (void 0, response[0], response[1], response[2]);
|
||||
} else {
|
||||
cb('INVALID_RESPONSE');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user