app.attachmentList = app.editor.attributeInspector._attachmentEditor._attachmentList; if (app.attachmentList) { app.selectFeatureHandle = on(app.attachmentList, "mouseover", function() { var link = domQuery('a', app.attachmentList)[0]; var temp = domAttr.get(link, 'href'); if (temp != '#') { app.attachUrl = temp; domAttr.set(link, "href", "#"); domAttr.set(link, "target", "_self"); link.innerHTML = '<img class="attachment" src="' + app.attachUrl + '" + alt="Attachment" />'; app.viewAttachmentHandle = on(link, "click", function() { attachmentDialog.set('content', '<img class="attachment" src="' + app.attachUrl + '" + alt="Attachment" />'); attachmentDialog.show(); }); } }); app.clearFeatureHandle = on(app.map.infoWindow, "hide", function() { app.attachUrl = ''; app.clearFeatureHandle.remove(); app.viewAttachmentHandle.remove(); }); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.