Weird stuff for updates
This commit is contained in:
parent
82cd2dbaff
commit
be9996ab9f
|
@ -205,7 +205,9 @@ function form_upload(url, auth, current_package) {
|
|||
|
||||
let number_update = res.version;
|
||||
let server_update = res.server_update;
|
||||
let current_version = Math.round(parseFloat(current_package));
|
||||
let target_version = Math.round(parseFloat(current_package)) + 1;
|
||||
let target_patch = Math.round(parseFloat(current_package)) + 0.1;
|
||||
|
||||
if (number_update === null) {
|
||||
umConfirm({
|
||||
|
@ -222,7 +224,11 @@ function form_upload(url, auth, current_package) {
|
|||
cancelUpdate();
|
||||
}
|
||||
});
|
||||
} else if (Math.round(parseFloat(number_update)) != target_version) {
|
||||
} else if (
|
||||
Math.round(parseFloat(number_update)) != target_version ||
|
||||
Math.round(parseFloat(number_update)) != target_patch ||
|
||||
Math.round(parseFloat(number_update)) != current_version
|
||||
) {
|
||||
if (ImSureWhatImDoing == undefined || ImSureWhatImDoing == false) {
|
||||
umConfirm({
|
||||
message:
|
||||
|
|
|
@ -84,8 +84,8 @@
|
|||
'ignoresign': "<?php echo __('Ignore'); ?>",
|
||||
'verifysigntitle': "<?php echo __('Verify package signature'); ?>",
|
||||
'verifysigns': "<?php echo __('Copy into the textarea the signature validation token you can retrieve from %s and press OK to verify the package, press ignore to avoid signature verification', 'https://support.pandorafms.com'); ?>",
|
||||
'notGoingToInstallUnoficialServerWarning': "<?php echo __('This server update does not correspond with current console version and is not going to be installed unless patches are allowed. Please enable patches in settings.'); ?>",
|
||||
'notGoingToInstallUnoficialWarning': "<?php echo __('This update does not correspond with next version of %s and is not going to be installed unless patches are allowed. Please enable patches in settings.', get_product_name()); ?>",
|
||||
'notGoingToInstallUnoficialServerWarning': "<?php echo __('This server update does not correspond with current console version and is not going to be installed unless patches are allowed. Please enable patches in update manager settings.'); ?>",
|
||||
'notGoingToInstallUnoficialWarning': "<?php echo __('This update does not correspond with next version of %s and is not going to be installed unless patches are allowed. Please enable patches in update manager settings.', get_product_name()); ?>",
|
||||
}
|
||||
|
||||
var insecureMode = <?php echo ($insecure === true) ? 'true' : 'false'; ?>;
|
||||
|
|
Loading…
Reference in New Issue