';
- html += '' + title + '
';
- html += '' + message + '
';
- html += '';
- html += '';
-
- $(document.body).append(html);
-
- // This timeout is obviously messy but it's unclear how to determine when the webcomponent is ready for use
- // element onload never fires
- setTimeout(function () {
-
- var dlg = document.getElementById(id);
-
- $('.dialogButton', dlg).on('click', function () {
-
- if (callback) {
- callback(parseInt(this.getAttribute('data-index')));
- }
-
- });
-
- // Has to be assigned a z-index after the call to .open()
- dlg.addEventListener('iron-overlay-closed', function (e) {
-
- dlg.parentNode.removeChild(dlg);
- });
-
- dlg.open();
-
- }, 300);
- };
-});
\ No newline at end of file
diff --git a/dashboard-ui/components/buttonenabled.js b/dashboard-ui/legacy/buttonenabled.js
similarity index 100%
rename from dashboard-ui/components/buttonenabled.js
rename to dashboard-ui/legacy/buttonenabled.js
diff --git a/dashboard-ui/scripts/actionsheet.js b/dashboard-ui/scripts/actionsheet.js
index 3e23ec2108..52c2bcdc41 100644
--- a/dashboard-ui/scripts/actionsheet.js
+++ b/dashboard-ui/scripts/actionsheet.js
@@ -66,7 +66,11 @@
return o.ironIcon;
}).length;
- html += '