SAML: file upload task is visible by a waiting image

This commit is contained in:
Thomas CHEMINEAU 2010-03-11 18:10:57 +00:00
parent 591cc277d5
commit 6807028824
2 changed files with 10 additions and 1 deletions

View File

@ -158,6 +158,13 @@ function setlmdata(id,v){
$('#text_'+id).attr('value',escape(v));
}
function setlmfile(id){
$("#fileloading")
.ajaxStart(function(){
$(this).show();
})
.ajaxComplete(function(){
$(this).hide();
});
$.ajaxFileUpload({
url:scriptname,
secureuri:false,
@ -295,6 +302,7 @@ function filearea(id) {
currentId=id;
$('#filearea').attr('value',lmdata(id));
display('filearea',lmtext(id));
$('#fileloading').hide();
}
function samlAssertion(id) {
currentId=id;

View File

@ -173,7 +173,8 @@
<input type="file" name="file" id="file" size="50" />
<button onclick="setlmfile(currentId);return false;" class="ui-state-default ui-corner-all">
<lang en="Load" fr="Charger" />
</button>
</button>
<span style="display:inline-block;width:20px;"><img id="fileloading" name="fileloading" src="<TMPL_VAR NAME="DIR">/ajax-loader.gif" style="vertical-align:middle;" /></span>
</div>
<!-- Specific to securedCookie (TODO push in _Struct.pm) -->