Inline edit (horizontal) broken after addition of the Copy column
This commit is contained in:
@@ -37,11 +37,11 @@ function getFieldName($this_field, disp_mode) {
|
|||||||
var this_field_index = $this_field.index();
|
var this_field_index = $this_field.index();
|
||||||
// ltr or rtl direction does not impact how the DOM was generated
|
// ltr or rtl direction does not impact how the DOM was generated
|
||||||
//
|
//
|
||||||
// 4 columns to account for the checkbox, edit, delete and appended inline edit anchors but index is zero-based so substract 3
|
// 5 columns to account for the checkbox, edit, appended inline edit, copy and delete anchors but index is zero-based so substract 4
|
||||||
var field_name = $('#table_results').find('thead').find('th:nth('+ (this_field_index-3 )+') a').text();
|
var field_name = $('#table_results').find('thead').find('th:nth('+ (this_field_index-4 )+') a').text();
|
||||||
// happens when just one row (headings contain no a)
|
// happens when just one row (headings contain no a)
|
||||||
if ("" == field_name) {
|
if ("" == field_name) {
|
||||||
field_name = $('#table_results').find('thead').find('th:nth('+ (this_field_index-3 )+')').text();
|
field_name = $('#table_results').find('thead').find('th:nth('+ (this_field_index-4 )+')').text();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user