Merge branch 'ent-9269-update-manager-offline-en-la-763-da-errores-aunque-actualiza' into 'develop'
Ent 9269 update manager offline en la 763 da errores aunque actualiza See merge request artica/pandorafms!5088
This commit is contained in:
commit
ad2425c429
|
@ -395,6 +395,7 @@ function formatFileSize(bytes) {
|
|||
* @param {boolean} serverUpdate
|
||||
*/
|
||||
function install_package(url, auth, packageId, version, serverUpdate) {
|
||||
var processed = 0;
|
||||
umConfirm({
|
||||
message:
|
||||
(serverUpdate ? texts.ensureServerUpdate : texts.ensureUpdate) +
|
||||
|
@ -427,6 +428,11 @@ function install_package(url, auth, packageId, version, serverUpdate) {
|
|||
$("#input-progress")
|
||||
.val(100)
|
||||
.change();
|
||||
|
||||
$("#result li").removeClass("error");
|
||||
$("#result li")
|
||||
.find("p")
|
||||
.text(response.result);
|
||||
},
|
||||
error: function(e, request) {
|
||||
clearInterval(progressInterval);
|
||||
|
@ -437,7 +443,10 @@ function install_package(url, auth, packageId, version, serverUpdate) {
|
|||
});
|
||||
},
|
||||
onDeny: function() {
|
||||
cancelUpdate();
|
||||
if (processed >= 1) {
|
||||
cancelUpdate();
|
||||
}
|
||||
processed += 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue