Files
webgui/emhttp/plugins/dynamix/Flash.page
Zack Spear 27754ace66 refactor: move clone_list function to Helpers.php
- Removed the clone_list function from Disk.page, Flash.page, and Share.page.
- Added the clone_list function to Helpers.php for better organization and reusability.
2025-05-27 15:36:54 -07:00

29 lines
763 B
Plaintext

Type="xmenu"
---
<?PHP
/* Copyright 2005-2023, Lime Technology
* Copyright 2012-2023, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<script>
function toggleButton(button,id) {
var disabled = true;
switch (id) {
case false:
case true:
disabled = id;
break;
default:
$('select#'+id+' option').each(function(){if ($(this).prop('selected')==true) disabled = false;});
}
$('input#'+button).prop('disabled',disabled);
}
</script>