Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1704 → Rev 1714

/branches/v3/impl/src/web/auth/loginWidget.jsp
24,6 → 24,21
function()
{
$('#modalAuthentication').modal('hide');
if(modalAuthReload)
{
window.location.reload();
}
else if(modalAuthHref != "")
{
window.location.href = modalAuthHref;
}
else if(modalAuthScript != "")
{
modalAuthHref = "";
modalAuthScript = "";
modalAuthReload = false;
eval(modalAuthScript);
}
},
function()
{
31,18 → 46,61
}
);
}
 
function logoutWidget()
{
widgetSimpleCallWithActionParameters(
"<%=request.getContextPath()%>/authenticateWidget.do",
"logoutWidget",
{ },
"body",
function()
{
window.location.href = window.location.href;
},
function()
{
//fail
}
);
}
</script>
 
 
 
<!--AUTENTICATION MODAL-->
<script>
var modalAuthHref = "";
var modalAuthScript = "";
var modalAuthReload = false;
 
$(document).ready(function(){
$('#modalAuthentication').on('show.bs.modal', function(e)
{
modalAuthHref = "";
modalAuthScript = "";
modalAuthReload = false;
$("#modalAuthentication .web-messages").html("");
 
if($(e.relatedTarget) && $(e.relatedTarget).data('reload'))
{
modalAuthReload = true;
}
else if($(e.relatedTarget) && $(e.relatedTarget).data('href'))
{
modalAuthHref = $(e.relatedTarget).data('href');
}
else if($(e.relatedTarget) && $(e.relatedTarget).data('script'))
{
modalAuthHref = $(e.relatedTarget).data('script');
}
 
 
});
});
 
 
 
</script>
<div class="modal fade" id="modalAuthentication" role="dialog" >
<div class="modal-dialog" data-width="960" style="display: block; width: 960px; margin-top: 50px;" aria-hidden="false">