SAML: file upload task is visible by a waiting image
This commit is contained in:
parent
591cc277d5
commit
6807028824
|
@ -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;
|
||||
|
|
|
@ -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) -->
|
||||
|
|
Loading…
Reference in New Issue
Block a user