';
- html += getEditorHtml();
+ html += '';
+
+ html += getEditorHtml();
dlg.innerHTML = html;
document.body.appendChild(dlg);
- var editorContent = dlg.querySelector('.editorContent');
- initEditor(editorContent, items);
+ initEditor(dlg, items);
$(dlg).on('iron-overlay-closed', onDialogClosed);
paperDialogHelper.open(dlg);
- $('.btnCloseDialog', dlg).on('click', function () {
+ $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg);
});
diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.js b/dashboard-ui/components/itemidentifier/itemidentifier.js
index ccbdf36c6e..d45cd2f0a3 100644
--- a/dashboard-ui/components/itemidentifier/itemidentifier.js
+++ b/dashboard-ui/components/itemidentifier/itemidentifier.js
@@ -7,7 +7,7 @@
function onIdentificationFormSubmitted() {
- var page = $(this).parents('.editorContent');
+ var page = $(this).parents('paper-dialog');
searchForIdentificationResults(page);
return false;
@@ -193,7 +193,7 @@
function onIdentificationOptionsSubmit() {
- var page = $(this).parents('.editorContent');
+ var page = $(this).parents('paper-dialog');
submitIdentficationResult(page);
return false;
@@ -273,7 +273,7 @@
$('.identifyProviderIds', page).html(html).trigger('create');
- $('.identificationHeader', page).html(Globalize.translate('HeaderIdentify'));
+ page.querySelector('.dialogHeaderTitle').innerHTML = Globalize.translate('HeaderIdentify');
});
}
@@ -294,14 +294,7 @@
var dlg = paperDialogHelper.createDialog();
var html = '';
- html += '';
-
- html += '
';
html += Globalize.translateDocument(template);
- html += '
';
dlg.innerHTML = html;
document.body.appendChild(dlg);
@@ -311,10 +304,9 @@
paperDialogHelper.open(dlg);
- var editorContent = dlg.querySelector('.editorContent');
- initEditor(editorContent);
+ initEditor(dlg);
- $('.btnCloseDialog', dlg).on('click', function () {
+ $('.btnCancel', dlg).on('click', function () {
paperDialogHelper.close(dlg);
});
diff --git a/dashboard-ui/components/itemidentifier/itemidentifier.template.html b/dashboard-ui/components/itemidentifier/itemidentifier.template.html
index 180eda9b5a..e3f9d74f75 100644
--- a/dashboard-ui/components/itemidentifier/itemidentifier.template.html
+++ b/dashboard-ui/components/itemidentifier/itemidentifier.template.html
@@ -1,4 +1,10 @@
-