From 9a99eaa803ffe66676febe3a732012dc1fe27ba3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 8 Dec 2015 15:01:29 -0500 Subject: [PATCH] use removeOnClose --- dashboard-ui/scripts/sync.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dashboard-ui/scripts/sync.js b/dashboard-ui/scripts/sync.js index 997c083f85..449a610e0d 100644 --- a/dashboard-ui/scripts/sync.js +++ b/dashboard-ui/scripts/sync.js @@ -232,7 +232,8 @@ var dlg = paperDialogHelper.createDialog({ size: 'small', - theme: 'a' + theme: 'a', + removeOnClose: true }); var html = ''; @@ -262,11 +263,6 @@ dlg.innerHTML = html; document.body.appendChild(dlg); - // Has to be assigned a z-index after the call to .open() - dlg.addEventListener('iron-overlay-closed', function (e) { - dlg.parentNode.removeChild(dlg); - }); - paperDialogHelper.open(dlg); $('form', dlg).on('submit', function () {