bug #3418849 [interface] Inline edit shows dropdowns even after closing
This commit is contained in:
@@ -3,6 +3,7 @@ phpMyAdmin - ChangeLog
|
|||||||
|
|
||||||
3.4.7.0 (not yet released)
|
3.4.7.0 (not yet released)
|
||||||
- bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false
|
- bug #3418610 [interface] Links in navigation when $cfg['MainPageIconic'] = false
|
||||||
|
- bug #3418849 [interface] Inline edit shows dropdowns even after closing
|
||||||
|
|
||||||
3.4.6.0 (not yet released)
|
3.4.6.0 (not yet released)
|
||||||
- patch #3404173 InnoDB comment display with tooltips/aliases
|
- patch #3404173 InnoDB comment display with tooltips/aliases
|
||||||
|
19
js/sql.js
19
js/sql.js
@@ -710,14 +710,13 @@ $(document).ready(function() {
|
|||||||
'sql_query' : sql_query,
|
'sql_query' : sql_query,
|
||||||
'inline_edit' : true
|
'inline_edit' : true
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
if(data.success == true) {
|
if(data.success == true && $edit_td.hasClass('inline_edit_active')) {
|
||||||
$this_field.append('<textarea>'+data.value+'</textarea>');
|
$this_field.append('<textarea>'+data.value+'</textarea>');
|
||||||
$this_field.data('original_data', data_value);
|
} else {
|
||||||
}
|
|
||||||
else {
|
|
||||||
PMA_ajaxShowMessage(data.error);
|
PMA_ajaxShowMessage(data.error);
|
||||||
}
|
}
|
||||||
}) // end $.post()
|
}) // end $.post()
|
||||||
|
$this_field.data('original_data', data_value);
|
||||||
}
|
}
|
||||||
else if($this_field.is('.relation')) {
|
else if($this_field.is('.relation')) {
|
||||||
/** @lends jQuery */
|
/** @lends jQuery */
|
||||||
@@ -738,9 +737,11 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.post('sql.php', post_params, function(data) {
|
$.post('sql.php', post_params, function(data) {
|
||||||
|
if ($edit_td.hasClass('inline_edit_active')) {
|
||||||
$this_field.append(data.dropdown);
|
$this_field.append(data.dropdown);
|
||||||
$this_field.data('original_data', data_value);
|
}
|
||||||
}) // end $.post()
|
}) // end $.post()
|
||||||
|
$this_field.data('original_data', data_value);
|
||||||
}
|
}
|
||||||
else if($this_field.is('.enum')) {
|
else if($this_field.is('.enum')) {
|
||||||
/** @lends jQuery */
|
/** @lends jQuery */
|
||||||
@@ -759,9 +760,11 @@ $(document).ready(function() {
|
|||||||
'curr_value' : curr_value
|
'curr_value' : curr_value
|
||||||
}
|
}
|
||||||
$.post('sql.php', post_params, function(data) {
|
$.post('sql.php', post_params, function(data) {
|
||||||
|
if ($edit_td.hasClass('inline_edit_active')) {
|
||||||
$this_field.append(data.dropdown);
|
$this_field.append(data.dropdown);
|
||||||
$this_field.data('original_data', data_value);
|
}
|
||||||
}) // end $.post()
|
}) // end $.post()
|
||||||
|
$this_field.data('original_data', data_value);
|
||||||
}
|
}
|
||||||
else if($this_field.is('.set')) {
|
else if($this_field.is('.set')) {
|
||||||
/** @lends jQuery */
|
/** @lends jQuery */
|
||||||
@@ -781,9 +784,11 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$.post('sql.php', post_params, function(data) {
|
$.post('sql.php', post_params, function(data) {
|
||||||
|
if ($edit_td.hasClass('inline_edit_active')) {
|
||||||
$this_field.append(data.select);
|
$this_field.append(data.select);
|
||||||
$this_field.data('original_data', data_value);
|
}
|
||||||
}) // end $.post()
|
}) // end $.post()
|
||||||
|
$this_field.data('original_data', data_value);
|
||||||
}
|
}
|
||||||
else if($this_field.is('.null')) {
|
else if($this_field.is('.null')) {
|
||||||
//handle null fields
|
//handle null fields
|
||||||
|
Reference in New Issue
Block a user