diff --git a/adminer/database.inc.php b/adminer/database.inc.php index d2baa202..e0d91003 100644 --- a/adminer/database.inc.php +++ b/adminer/database.inc.php @@ -57,7 +57,7 @@ if ($_POST) {

' . h($name) . '
' + ? '
' : '' ) . "\n" . ($collations ? html_select("collation", array("" => "(" . lang('collation') . ")") + $collations, $collate) : ""); ?> diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index e13531af..4703be49 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -218,7 +218,7 @@ if (DB != "") { } } } else { - echo ""; + echo ""; } } ?> diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index 075f9dd7..6add5c1c 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -106,7 +106,7 @@ function referencable_primary($self) { * @return null */ function textarea($name, $value, $rows = 10, $cols = 80) { - echo "'; // 1.2em - line-height + echo "'; // 1.2em - line-height } else { // int(3) is only a display hint $maxlength = (!ereg('int', $field["type"]) && preg_match('~^(\\d+)(,(\\d+))?$~', $field["length"], $match) ? ((ereg("binary", $field["type"]) ? 2 : 1) * $match[1] + ($match[3] ? 1 : 0) + ($match[2] && !$field["unsigned"] ? 1 : 0)) : ($types[$field["type"]] ? $types[$field["type"]] + ($field["unsigned"] ? 0 : 1) : 0)); diff --git a/adminer/select.inc.php b/adminer/select.inc.php index d5af997c..40b8bfc8 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -349,7 +349,7 @@ if (!$columns) { $editable = is_utf8($val) && $rows[$n][$key] == $row[$key] && !$functions[$key]; $text = ereg('text|lob', $field["type"]); echo (($_GET["modify"] && $editable) || isset($value) - ? "" . ($text ? "" : "") + ? "" . ($text ? "" : "") : "" . $adminer->selectVal($val, $link, $field) ); } diff --git a/adminer/static/functions.js b/adminer/static/functions.js index b0ea0939..36c9c7b9 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -164,7 +164,7 @@ function selectAddRow(field) { * @param HTMLInputElement submit button * @return boolean */ -function textareaKeypress(target, event, tab, button) { +function textareaKeydown(target, event, tab, button) { if (tab && event.keyCode == 9 && !event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey) { // inspired by http://pallieter.org/Projects/insertTab/ if (target.setSelectionRange) { @@ -377,8 +377,8 @@ function selectDblClick(td, event, text) { rows++; }); input.rows = rows; - input.onkeypress = function (event) { - return textareaKeypress(input, event || window.event, false, document.getElementById('save')); + input.onkeydown = function (event) { + return textareaKeydown(input, event || window.event, false, document.getElementById('save')); }; } if (document.selection) { diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php index b2431b14..b4c51a30 100644 --- a/editor/include/adminer.inc.php +++ b/editor/include/adminer.inc.php @@ -275,7 +275,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5 print_fieldset("email", lang('E-mail'), $_POST["email_append"]); echo "

" . lang('From') . ": \n"; echo lang('Subject') . ": \n"; - echo "


\n"; + echo "


\n"; echo html_select("email_addition", $columns, $_POST["email_addition"]) . "\n"; //! JavaScript echo "

" . lang('Attachments') . ": "; echo "

" . (count($emailFields) == 1 ? '' : html_select("email_field", $emailFields)); diff --git a/plugins/edit-textarea.php b/plugins/edit-textarea.php index c6384d10..d9245618 100644 --- a/plugins/edit-textarea.php +++ b/plugins/edit-textarea.php @@ -9,7 +9,7 @@ class AdminerEditTextarea { function editInput($table, $field, $attrs, $value) { if (ereg('char', $field["type"])) { - return "'; + return "'; } }