From f431ff5d87ec905903c081cfb39fa96d27cb7aa3 Mon Sep 17 00:00:00 2001 From: peterfellwock Date: Tue, 9 Feb 2016 17:20:18 -0800 Subject: [PATCH] LPS-60967 Remove migrated taglib --- .../docroot/html/taglib/ui/flags/page.jsp | 120 ------------------ 1 file changed, 120 deletions(-) delete mode 100644 portal-web/docroot/html/taglib/ui/flags/page.jsp diff --git a/portal-web/docroot/html/taglib/ui/flags/page.jsp b/portal-web/docroot/html/taglib/ui/flags/page.jsp deleted file mode 100644 index 8fe2630cc4a539..00000000000000 --- a/portal-web/docroot/html/taglib/ui/flags/page.jsp +++ /dev/null @@ -1,120 +0,0 @@ -<%-- -/** - * Copyright (c) 2000-present Liferay, Inc. All rights reserved. - * - * This library is free software; you can redistribute it and/or modify it under - * the terms of the GNU Lesser General Public License as published by the Free - * Software Foundation; either version 2.1 of the License, or (at your option) - * any later version. - * - * This library is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more - * details. - */ ---%> - -<%@ include file="/html/taglib/init.jsp" %> - -<% -String randomNamespace = StringUtil.randomId() + StringPool.UNDERLINE; - -String className = (String)request.getAttribute("liferay-ui:flags:className"); -long classPK = GetterUtil.getLong((String)request.getAttribute("liferay-ui:flags:classPK")); -String contentTitle = GetterUtil.getString((String)request.getAttribute("liferay-ui:flags:contentTitle")); -boolean label = GetterUtil.getBoolean((String)request.getAttribute("liferay-ui:flags:label"), true); -String message = GetterUtil.getString((String)request.getAttribute("liferay-ui:flags:message"), "flag[action]"); -long reportedUserId = GetterUtil.getLong((String)request.getAttribute("liferay-ui:flags:reportedUserId")); - -String cssClass = randomNamespace; - -if (!TrashUtil.isInTrash(className, classPK)) { - cssClass = randomNamespace + " flag-enable"; -} -%> - -
' />"> - -
- - - - - - var icon = A.one('.<%= randomNamespace %>'); - - if (icon) { - icon.on( - 'click', - function() { - var popup = Liferay.Util.Window.getWindow( - { - dialog: { - destroyOnHide: true, - height: 400, - width: 400 - }, - title: '<%= UnicodeLanguageUtil.get(request, "report-inappropriate-content") %>' - } - ); - - var data = Liferay.Util.ns( - '<%= PortalUtil.getPortletNamespace(PortletKeys.FLAGS) %>', - { - className: '<%= className %>', - classPK: '<%= classPK %>', - contentTitle: '<%= HtmlUtil.escapeJS(contentTitle) %>', - contentURL: '<%= HtmlUtil.escapeJS(PortalUtil.getPortalURL(request) + currentURL) %>', - reportedUserId: '<%= reportedUserId %>' - } - ); - - popup.plug( - A.Plugin.IO, { - data: data, - uri: '' - } - ); - } - ); - } - - - - - - - var icon = A.one('.<%= randomNamespace %>'); - - if (icon) { - icon.on( - 'click', - function(event) { - var popup = Liferay.Util.Window.getWindow( - { - dialog: { - bodyContent: A.one('#<%= randomNamespace %>signIn').html(), - destroyOnHide: true, - height: 300, - width: 400 - }, - title: '<%= UnicodeLanguageUtil.get(request, "report-inappropriate-content") %>' - } - ); - - event.preventDefault(); - } - ); - } - - - - \ No newline at end of file