Fix share modal auto-close bug

This commit is contained in:
yflory
2019-06-20 14:50:55 +02:00
parent ff22af3343
commit 0a639851bb

View File

@@ -50,7 +50,7 @@ define([
password: priv.password password: priv.password
} }
}); });
UI.findCancelButton().click(); $('button.cancel').click(); // Close any existing alertify
UI.openCustomModal(UI.dialog.tabs(modal), { UI.openCustomModal(UI.dialog.tabs(modal), {
wide: Object.keys(friends).length !== 0 wide: Object.keys(friends).length !== 0
}); });
@@ -74,9 +74,6 @@ define([
andThen(common); andThen(common);
return; return;
} }
metadataMgr.onChange(function () {
andThen(common);
});
}); });
}; };
main(); main();