For Bug #3207730 Inline edit and Relational display column

This commit is contained in:
Madhura Jayaratne
2011-03-23 18:08:35 +05:30
parent 29dbdde4ff
commit 2038266f88
2 changed files with 17 additions and 2 deletions

View File

@@ -542,6 +542,11 @@ $(document).ready(function() {
* @var relation_curr_value String current value of the field (for fields that are foreign keyed).
*/
var relation_curr_value = $this_field.find('a').text();
/**
* @var relation_key_or_display_column String relational key if in 'Relational display column' mode,
* relational display column if in 'Relational key' mode (for fields that are foreign keyed).
*/
var relation_key_or_display_column = $this_field.find('a').attr('title');
/**
* @var curr_value String current value of the field (for fields that are of type enum or set).
*/
@@ -647,7 +652,8 @@ $(document).ready(function() {
'table' : window.parent.table,
'column' : field_name,
'token' : window.parent.token,
'curr_value' : relation_curr_value
'curr_value' : relation_curr_value,
'relation_key_or_display_column' : relation_key_or_display_column
}
$.post('sql.php', post_params, function(data) {