Update device_profiles.php

This commit is contained in:
FusionPBX
2019-08-14 23:13:52 -06:00
committed by GitHub
parent d3456f84f9
commit bcc49ebdb3

View File

@@ -154,21 +154,21 @@
$row_style["1"] = "row_style1";
//define the checkbox_toggle function
echo "<script type=\"text/javascript\">\n";
echo " function checkbox_toggle(item) {\n";
echo " var inputs = document.getElementsByTagName(\"input\");\n";
echo " for (var i = 0, max = inputs.length; i < max; i++) {\n";
echo " if (inputs[i].type === 'checkbox') {\n";
echo " if (document.getElementById('checkbox_all').checked == true) {\n";
echo " inputs[i].checked = true;\n";
echo " }\n";
echo " else {\n";
echo " inputs[i].checked = false;\n";
echo " }\n";
echo " }\n";
echo " }\n";
echo " }\n";
echo "</script>\n";
//echo "<script type=\"text/javascript\">\n";
//echo " function checkbox_toggle(item) {\n";
//echo " var inputs = document.getElementsByTagName(\"input\");\n";
//echo " for (var i = 0, max = inputs.length; i < max; i++) {\n";
//echo " if (inputs[i].type === 'checkbox') {\n";
//echo " if (document.getElementById('checkbox_all').checked == true) {\n";
//echo " inputs[i].checked = true;\n";
//echo " }\n";
//echo " else {\n";
//echo " inputs[i].checked = false;\n";
//echo " }\n";
//echo " }\n";
//echo " }\n";
//echo " }\n";
//echo "</script>\n";
//show the content
echo "<table width='100%' border='0'>\n";