Index: trunk/extensions/Wikidata/OmegaWiki/forms.php |
— | — | @@ -13,7 +13,8 @@ |
14 | 14 | |
15 | 15 | function getTextArea( $name, $text = "", $rows = 5, $columns = 80, $disabled = false ) { |
16 | 16 | if ( $disabled ) { |
17 | | - return '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $columns . '" READONLY>' . htmlspecialchars( $text ) . '</textarea>'; |
| 17 | + // READONLY alone is not enough: apparently, some browsers ignore it |
| 18 | + return '<textarea disabled="disabled" name="' . $name . '" rows="' . $rows . '" cols="' . $columns . '" READONLY>' . htmlspecialchars( $text ) . '</textarea>'; |
18 | 19 | } else { |
19 | 20 | return '<textarea name="' . $name . '" rows="' . $rows . '" cols="' . $columns . '">' . htmlspecialchars( $text ) . '</textarea>'; |
20 | 21 | } |