Mercurial > hg > lukkari
comparison index.php @ 189:bc0d7a5d7b8e
Make class code selection list to autosubmit via javascript if scripts are
enabled, while also hiding the separate "change"-button if so. This makes
the controls a bit more less crowded.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 13 Jan 2016 08:18:22 +0200 |
parents | 658422c83b49 |
children | 23fb0797f448 |
comparison
equal
deleted
inserted
replaced
188:658422c83b49 | 189:bc0d7a5d7b8e |
---|---|
630 echo | 630 echo |
631 "<form id=\"controls\" action=\"".$baseURI."\" method=\"get\">\n". | 631 "<form id=\"controls\" action=\"".$baseURI."\" method=\"get\">\n". |
632 " <table>\n". | 632 " <table>\n". |
633 " <tr>\n". | 633 " <tr>\n". |
634 " <th>\n". | 634 " <th>\n". |
635 " <select name=\"class\">\n"; | 635 " <select id=\"classSelect\" name=\"class\" onChange=\"this.form.submit();\">\n"; |
636 | 636 |
637 if ($classIDs !== FALSE) | 637 if ($classIDs !== FALSE) |
638 { | 638 { |
639 foreach ($classIDs as $id) | 639 foreach ($classIDs as $id) |
640 { | 640 { |
645 } | 645 } |
646 | 646 |
647 echo | 647 echo |
648 " </select>\n". | 648 " </select>\n". |
649 " </th>\n". | 649 " </th>\n". |
650 " <th><input class=\"submit\" type=\"submit\" value=\"".cmQM("change")."\" /></th>\n"; | 650 " <noscript><th><input id=\"classSwitch\" class=\"submit\" type=\"submit\" value=\"".cmQM("change")."\" /></th></noscript>\n"; |
651 | 651 |
652 if (!$mobileMode) | 652 if (!$mobileMode) |
653 { | 653 { |
654 echo | 654 echo |
655 " <th><a id=\"next\" class=\"textctrl\" href=\"". | 655 " <th><a id=\"next\" class=\"textctrl\" href=\"". |