mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Better select.value detection
This commit is contained in:
@@ -36,7 +36,8 @@ function verifyVersion() {
|
||||
* @return string
|
||||
*/
|
||||
function selectValue(select) {
|
||||
return (select.value !== undefined ? select.value : select.options[select.selectedIndex].text);
|
||||
var selected = select.options[select.selectedIndex];
|
||||
return ((selected.attributes.value || {}).specified ? selected.value : selected.text);
|
||||
}
|
||||
|
||||
/** Check all elements matching given name
|
||||
|
Reference in New Issue
Block a user