Files
Babydatenbank/web/xava/editors/webURLEditor.jsp
Socrates 9ed0f2a056 test
2020-05-26 10:29:34 +02:00

19 lines
620 B
Plaintext

<%@ include file="../imports.jsp"%>
<jsp:useBean id="style" class="org.openxava.web.style.Style" scope="request"/>
<span class="<%=style.getWebURL()%>">
<jsp:include page="textEditor.jsp"/>
<%
String propertyKey = request.getParameter("propertyKey");
String fvalue = (String) request.getAttribute(propertyKey + ".fvalue");
%>
<a style="position: relative; right: 25px;" target="_blank" href="<%=fvalue%>"
onclick="var url=$('#<%=propertyKey%>').val(); if (url.substr(0, 7) !== 'http://' && url.substr(0, 8) !== 'https://') url = 'http://' + url; this.href=url"
>
<i class="mdi mdi-open-in-new"></i>
</a>
</span>