issue #0001595 : Affichage du bouton fermer uniquement à la fin des traitements

This commit is contained in:
Michael RICOIS 2013-07-31 12:11:11 +00:00
parent 41a3a9b9dc
commit 8d46b8cf9c

View File

@ -109,12 +109,15 @@ function survSubmit(){
function(data) { $('#frmSurv').append('<br/>'+data);
}, 'text');
});
$('#dialogsurv').dialog({ buttons: [
{ text: "Fermer", click: function() { window.location.href = windowhref; } }
]});
} else {
$('#frmSurv').replaceWith('<div id="frmSurv">Aucune source !</div>');
$('#dialogsurv').dialog({ buttons: [
{ text: "Fermer", click: function() { window.location.href = windowhref; } }
]});
}
$('#dialogsurv').dialog({ buttons: [
{ text: "Fermer", click: function() { window.location.href = windowhref; } }
]});
}
</script>