From 752a31414d5264f86be717eefbb10fdb7c5fc2c5 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Fri, 1 Apr 2011 15:16:59 +0100 Subject: [PATCH] Fix item #1 in bug #3204461 - "Continue insertion" and ENUM columns --- js/tbl_change.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/tbl_change.js b/js/tbl_change.js index 2812c26b9..1a94714dd 100644 --- a/js/tbl_change.js +++ b/js/tbl_change.js @@ -387,8 +387,11 @@ $(document).ready(function() { $this_element.attr('name', new_name); if ($this_element.is('.textfield')) { + // do not remove the 'value' attribute for ENUM columns + if ($this_element.closest('tr').find('span.column_type').html() != 'enum') { + $this_element.attr('value', ''); + } $this_element - .attr('value', '') .unbind('change') // Remove onchange attribute that was placed // by tbl_change.php; it refers to the wrong row index