From 0a639851bbd3bd2b52c49b82b08dc546601428c8 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 20 Jun 2019 14:50:55 +0200 Subject: [PATCH] Fix share modal auto-close bug --- www/share/inner.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/share/inner.js b/www/share/inner.js index 35d337c9f..45fd67057 100644 --- a/www/share/inner.js +++ b/www/share/inner.js @@ -50,7 +50,7 @@ define([ password: priv.password } }); - UI.findCancelButton().click(); + $('button.cancel').click(); // Close any existing alertify UI.openCustomModal(UI.dialog.tabs(modal), { wide: Object.keys(friends).length !== 0 }); @@ -74,9 +74,6 @@ define([ andThen(common); return; } - metadataMgr.onChange(function () { - andThen(common); - }); }); }; main();