Details

      Description

      When creating Web Content, a JS error is thrown:

       

      Likely caused by a missing node that's never created anywhere:

      <aui:script require="metal-dom/src/all/dom as dom">
      	var previewAssetEntryUsagesList = dom.delegate(
      		document.querySelector('#<portlet:namespace/>assetEntryUsagesList'),
      		'click',
      		'.preview-asset-entry-usage',
      		function(event) {
      			var delegateTarget = event.delegateTarget;
      
      			Liferay.fire(
      				'previewArticle',
      				{
      					title: delegateTarget.getAttribute('data-title'),
      					uri: delegateTarget.getAttribute('data-href')
      				}
      			);
      		}
      	);
      
      	function removeListener() {
      		previewAssetEntryUsagesList.removeListener();
      
      		Liferay.detach('destroyPortlet', removeListener);
      	}
      
      	Liferay.on('destroyPortlet', removeListener);
      </aui:script>

       

        Attachments

          Activity

            People

            Assignee:
            kyle.miho Kyle Miho
            Reporter:
            jose.balsas Chema Balsas
            Participants of an Issue:
            Recent user:
            Kyle Miho
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 48 weeks, 4 days ago

                Packages

                Version Package
                Master