mirror of
https://github.com/unraid/webgui.git
synced 2025-12-31 14:40:36 -06:00
- 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.
29 lines
763 B
Plaintext
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>
|