Question about the removal of the backup feature (Bugs)

by Micha ⌂, Tuesday, April 26, 2022, 07:19 (755 days ago) @ Auge


Am I right, that when I remove the function in the variable initBackupControls and its call inside the function MyLittleAdmin there remains nothing more than the call for DragAndDropTable in the event listener?

I think this file content can be reduced to

document.addEventListener("DOMContentLoaded", function(e) {
 new DragAndDropTable(document.getElementById("sortable"), "admin", "action");

Moreover, the i18n files can be reduced due to the reduction, i.e.,


In js_defaults.inc.php, the block becomes obsolete, too

<?php if(isset($user_type) && $user_type==2): ?>
 lang["check_all"] =                        "<?php echo addslashes($lang['check_all']); ?>";
 lang["uncheck_all"] =                      "<?php echo addslashes($lang['uncheck_all']); ?>";
 lang["delete_backup_confirm"] =            "<?php echo addslashes($lang['delete_backup_confirm']); ?>";
 lang["delete_sel_backup_confirm"] =        "<?php echo addslashes($lang['delete_sel_backup_confirm']); ?>";
<?php endif; ?>

Do you modify these files?


applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

Complete thread:

 RSS Feed of thread