In inline edit, when getting the field name, ignore the column comments.
This commit is contained in:
@@ -8,16 +8,16 @@
|
|||||||
function getFieldName(this_field_obj, disp_mode) {
|
function getFieldName(this_field_obj, disp_mode) {
|
||||||
|
|
||||||
if(disp_mode == 'vertical') {
|
if(disp_mode == 'vertical') {
|
||||||
var field_name = $(this_field_obj).siblings('th').text();
|
var field_name = $(this_field_obj).siblings('th').find('a').text();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var this_field_index = $(this_field_obj).index();
|
var this_field_index = $(this_field_obj).index();
|
||||||
if(window.parent.text_dir == 'ltr') {
|
if(window.parent.text_dir == 'ltr') {
|
||||||
// 3 columns to account for the checkbox, edit and delete anchors
|
// 3 columns to account for the checkbox, edit and delete anchors
|
||||||
var field_name = $(this_field_obj).parents('table').find('thead').find('th:nth('+ (this_field_index-3 )+')').text();
|
var field_name = $(this_field_obj).parents('table').find('thead').find('th:nth('+ (this_field_index-3 )+') a').text();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var field_name = $(this_field_obj).parents('table').find('thead').find('th:nth('+ this_field_index+')').text();
|
var field_name = $(this_field_obj).parents('table').find('thead').find('th:nth('+ this_field_index+') a').text();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,4 +358,4 @@ $(document).ready(function() {
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
}) // End After editing, clicking again should post data
|
}) // End After editing, clicking again should post data
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user