Bug #3207730 [AJAX] Inline edit and Relational display column

This commit is contained in:
Madhura Jayaratne
2011-04-11 10:55:58 +05:30
parent 63dd25baac
commit cc05f48f3c
2 changed files with 45 additions and 3 deletions

View File

@@ -784,6 +784,10 @@ $(document).ready(function() {
* @var relation_fields Array containing the name/value pairs of relational fields
*/
var relation_fields = {};
/**
* @var relational_display string 'K' if relational key, 'D' if relational display column
*/
var relational_display = $("#relational_display_K").attr('checked') ? 'K' : 'D';
/**
* @var transform_fields Array containing the name/value pairs for transformed fields
*/
@@ -910,6 +914,7 @@ $(document).ready(function() {
'rel_fields_list' : rel_fields_list,
'do_transformations' : transformation_fields,
'transform_fields_list' : transform_fields_list,
'relational_display' : relational_display,
'goto' : 'sql.php',
'submit_type' : 'save'
};
@@ -1027,7 +1032,7 @@ function PMA_unInlineEditRow($del_hide, $chg_submit, $this_td, $input_siblings,
if (typeof data.relations != 'undefined') {
$.each(data.relations, function(key, value) {
if(key == field_name) {
new_html = $(value).append(new_value);
new_html = $(value);
return false;
}
})