mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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
|
* @param {boolean} serverUpdate
|
||||||
*/
|
*/
|
||||||
function install_package(url, auth, packageId, version, serverUpdate) {
|
function install_package(url, auth, packageId, version, serverUpdate) {
|
||||||
|
var processed = 0;
|
||||||
umConfirm({
|
umConfirm({
|
||||||
message:
|
message:
|
||||||
(serverUpdate ? texts.ensureServerUpdate : texts.ensureUpdate) +
|
(serverUpdate ? texts.ensureServerUpdate : texts.ensureUpdate) +
|
||||||
@ -427,6 +428,11 @@ function install_package(url, auth, packageId, version, serverUpdate) {
|
|||||||
$("#input-progress")
|
$("#input-progress")
|
||||||
.val(100)
|
.val(100)
|
||||||
.change();
|
.change();
|
||||||
|
|
||||||
|
$("#result li").removeClass("error");
|
||||||
|
$("#result li")
|
||||||
|
.find("p")
|
||||||
|
.text(response.result);
|
||||||
},
|
},
|
||||||
error: function(e, request) {
|
error: function(e, request) {
|
||||||
clearInterval(progressInterval);
|
clearInterval(progressInterval);
|
||||||
@ -437,7 +443,10 @@ function install_package(url, auth, packageId, version, serverUpdate) {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
onDeny: function() {
|
onDeny: function() {
|
||||||
cancelUpdate();
|
if (processed >= 1) {
|
||||||
|
cancelUpdate();
|
||||||
|
}
|
||||||
|
processed += 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user