mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#9269 Fixed deny
This commit is contained in:
parent
f95fc2b2df
commit
28b31d730d
@ -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) +
|
||||||
@ -442,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