Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
commit
208051cca4
|
@ -2884,7 +2884,13 @@ define([
|
|||
UIElements.displayStorePadPopup = function (common, data) {
|
||||
if (storePopupState) { return; }
|
||||
storePopupState = true;
|
||||
if (data && data.stored) { return; } // We won't display the popup for dropped files
|
||||
// We won't display the popup for dropped files or already stored pads
|
||||
if (data && data.stored) {
|
||||
if (!data.inMyDrive) {
|
||||
$('.cp-toolbar-storeindrive').show();
|
||||
}
|
||||
return;
|
||||
}
|
||||
var priv = common.getMetadataMgr().getPrivateData();
|
||||
|
||||
// This pad will be deleted automatically, it shouldn't be stored
|
||||
|
|
|
@ -1228,7 +1228,7 @@ define([
|
|||
});
|
||||
|
||||
// Add the pad if it does not exist in our drive
|
||||
if (!contains) { // || (ownedByMe && !inMyDrive)) {
|
||||
if (!contains || (data.forceSave && !inMyDrive)) {
|
||||
var autoStore = Util.find(store.proxy, ['settings', 'general', 'autostore']);
|
||||
if (autoStore !== 1 && !data.forceSave && !data.path) {
|
||||
// send event to inner to display the corner popup
|
||||
|
@ -1269,7 +1269,8 @@ define([
|
|||
});
|
||||
// Let inner know that dropped files shouldn't trigger the popup
|
||||
postMessage(clientId, "AUTOSTORE_DISPLAY_POPUP", {
|
||||
stored: true
|
||||
stored: true,
|
||||
inMyDrive: inMyDrive
|
||||
});
|
||||
nThen(function (waitFor) {
|
||||
sendTo.forEach(function (teamId) {
|
||||
|
|
|
@ -73,6 +73,8 @@ define([
|
|||
else {
|
||||
editor.setSelection(posToCursor(selects[0], remoteDoc), posToCursor(selects[1], remoteDoc));
|
||||
}
|
||||
|
||||
editor.scrollTo(scroll.left, scroll.top);
|
||||
};
|
||||
|
||||
module.handleImagePaste = function (editor) {
|
||||
|
|
Loading…
Reference in New Issue