diff --git a/js/rte/routines.js b/js/rte/routines.js index 087b9d61a5..b351e7bd83 100644 --- a/js/rte/routines.js +++ b/js/rte/routines.js @@ -192,10 +192,16 @@ RTE.setOptionsForParameter = function ($type, $len, $text, $num) { case 'MEDIUMTEXT': case 'LONGBLOB': case 'LONGTEXT': + $text.closest('tr').find('a:first').hide(); $len.parent().hide(); $no_len.show(); break; default: + if ($type.val() == 'ENUM' || $type.val() == 'SET') { + $text.closest('tr').find('a:first').show(); + } else { + $text.closest('tr').find('a:first').hide(); + } $len.parent().show(); $no_len.hide(); break; @@ -272,6 +278,7 @@ $(document).ready(function () { $(this).attr('name', inputname.substr(0, 15) + '[' + index + ']'); } else if (inputname.substr(0, 17) === 'item_param_length') { $(this).attr('name', inputname.substr(0, 17) + '[' + index + ']'); + $(this).attr('id', 'item_param_length_' + index); } else if (inputname.substr(0, 20) === 'item_param_opts_text') { $(this).attr('name', inputname.substr(0, 20) + '[' + index + ']'); } else if (inputname.substr(0, 19) === 'item_param_opts_num') { diff --git a/libraries/rte/rte_routines.lib.php b/libraries/rte/rte_routines.lib.php index 60b163f19d..fa3de8b887 100644 --- a/libraries/rte/rte_routines.lib.php +++ b/libraries/rte/rte_routines.lib.php @@ -680,8 +680,17 @@ function PMA_RTN_getParameterRow($routine = array(), $index = null, $class = '') $retval .= "