From 9063e153c183b85430af585da6aa15aa437fac5e Mon Sep 17 00:00:00 2001 From: grafixeyehero Date: Fri, 18 Oct 2019 17:05:50 +0300 Subject: [PATCH] add item path --- .../itemidentifier/itemidentifier.js | 10 ++++++++++ .../itemidentifier.template.html | 20 ++++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/components/itemidentifier/itemidentifier.js b/src/components/itemidentifier/itemidentifier.js index 36a337cb7e..c192d76955 100644 --- a/src/components/itemidentifier/itemidentifier.js +++ b/src/components/itemidentifier/itemidentifier.js @@ -370,6 +370,14 @@ define(['dialogHelper', 'loading', 'connectionManager', 'require', 'globalize', scrollHelper.centerFocus.on(dlg.querySelector('.formDialogContent'), false); } + if (item.Path) { + dlg.querySelector('.fldPath').classList.remove('hide'); + } else { + dlg.querySelector('.fldPath').classList.add('hide'); + } + + dlg.querySelector('.txtPath').innerHTML = item.Path || ''; + dialogHelper.open(dlg); dlg.querySelector('.popupIdentifyForm').addEventListener('submit', function (e) { @@ -440,6 +448,8 @@ define(['dialogHelper', 'loading', 'connectionManager', 'require', 'globalize', scrollHelper.centerFocus.on(dlg.querySelector('.formDialogContent'), false); } + + dialogHelper.open(dlg); dlg.querySelector('.btnCancel').addEventListener('click', function (e) { diff --git a/src/components/itemidentifier/itemidentifier.template.html b/src/components/itemidentifier/itemidentifier.template.html index e9ba163a02..7f7195760d 100644 --- a/src/components/itemidentifier/itemidentifier.template.html +++ b/src/components/itemidentifier/itemidentifier.template.html @@ -1,5 +1,7 @@
- +

${Identify}

@@ -9,12 +11,19 @@
+
+
${LabelPath}
+
+
+

${HeaderIdentifyItemHelp}

- +
- +
@@ -43,10 +52,11 @@
-
-
\ No newline at end of file +