Quitado código Javascript, retoques en el layout.
This commit is contained in:
@@ -9,26 +9,13 @@
|
||||
<title>MyHealth Online Services</title>
|
||||
<h:outputStylesheet name="primeicons/primeicons.css" library="primefaces" />
|
||||
<h:outputStylesheet library="css" name="estilos.css" />
|
||||
<h:outputScript library="js" name="common.js" />
|
||||
</h:head>
|
||||
<h:outputScript>
|
||||
function handleLoginRequest(xhr, status, args) {
|
||||
if(args.validationFailed || !args.loggedIn) {
|
||||
PF('dlgLogin').jq.effect("shake", {times:5}, 100);
|
||||
PF('btnLogin').enable();
|
||||
}
|
||||
else {
|
||||
PF('btnLogin').enable();
|
||||
PF('dlgLogin').hide();
|
||||
}
|
||||
}
|
||||
|
||||
function startLogin() {
|
||||
PF('btnLogin').disable();
|
||||
}
|
||||
|
||||
function onAjaxError() {
|
||||
alert('Ajax error');
|
||||
}
|
||||
// Si hay un error AJAX, lo más probable es que la sesión expirase, vamos a la página de error
|
||||
function onAjaxError() {
|
||||
window.location.href = "#{request.contextPath}/error.xhtml?type=expired";
|
||||
}
|
||||
</h:outputScript>
|
||||
<h:body>
|
||||
<p:growl id="messages" globalOnly="true" sticky="false" showDetail="true" life="15000" />
|
||||
@@ -39,10 +26,12 @@
|
||||
<div id="menuDiv" style="margin-bottom: 10px;">
|
||||
<p:ajaxStatus style="width:32px; height:32px; position:fixed; right:32px; bottom:32px" onerror="onAjaxError()">
|
||||
<f:facet name="start">
|
||||
<i id="loginSpin" class="pi pi-spin pi-spinner" style="font-size: 3em"></i>
|
||||
<i id="loginSpin" class="pi pi-spin pi-spinner" style="font-size: 3em" />
|
||||
</f:facet>
|
||||
|
||||
<f:facet name="error">Error!</f:facet>
|
||||
<f:facet name="error">
|
||||
<i class="pi pi-exclamation-triangle" style="font-size: 3em" />
|
||||
</f:facet>
|
||||
</p:ajaxStatus>
|
||||
|
||||
<h:form id="frmLogin">
|
||||
|
||||
Reference in New Issue
Block a user