Skip to content

Instantly share code, notes, and snippets.

@diegonvs
Created July 3, 2020 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegonvs/5771f259c1497a780b9141940233cc1b to your computer and use it in GitHub Desktop.
Save diegonvs/5771f259c1497a780b9141940233cc1b to your computer and use it in GitHub Desktop.
portal-web/docroot/html/taglib/ui/error/page.jsp: let alertContainer = document.getElementById('alertContainer');
portal-web/docroot/html/taglib/ui/error/page.jsp: if (!alertContainer) {
portal-web/docroot/html/taglib/ui/error/page.jsp: alertContainer = document.createElement('div');
portal-web/docroot/html/taglib/ui/error/page.jsp: alertContainer.id = 'alertContainer';
portal-web/docroot/html/taglib/ui/error/page.jsp: dom.addClasses(alertContainer, 'alert-notifications alert-notifications-fixed');
portal-web/docroot/html/taglib/ui/error/page.jsp: dom.enterDocument(alertContainer);
portal-web/docroot/html/taglib/ui/error/page.jsp: dom.removeChildren(alertContainer);
portal-web/docroot/html/taglib/ui/error/page.jsp: if (!alertContainer.hasChildNodes()) {
portal-web/docroot/html/taglib/ui/error/page.jsp: dom.exitDocument(alertContainer);
portal-web/docroot/html/taglib/ui/error/page.jsp: alertContainer
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl:let alertContainer = document.getElementById('alertContainer');
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl:if (!alertContainer) {
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: alertContainer = document.createElement('div');
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: alertContainer.id = 'alertContainer';
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: dom.addClasses(alertContainer, 'alert-notifications alert-notifications-fixed');
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: dom.enterDocument(alertContainer);
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: dom.removeChildren(alertContainer);
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: if (!alertContainer.hasChildNodes()) {
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: dom.exitDocument(alertContainer);
util-taglib/src/com/liferay/taglib/ui/success/toast.tmpl: alertContainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment