fixed error mesage scroll

This commit is contained in:
zmagod 2016-12-15 10:44:23 +01:00
parent b003d192c3
commit b164886270

View file

@ -1032,12 +1032,16 @@ function changeToEditMode() {
data: {custom_field: {name: newName}}, data: {custom_field: {name: newName}},
dataType: 'json', dataType: 'json',
success: function() { success: function() {
dropdownList.sortable('enable');
text.text(newName); text.text(newName);
$(table.columns().header()).filter('#' + id).text(newName); $(table.columns().header()).filter('#' + id).text(newName);
$(li).clearFormErrors(); $(li).clearFormErrors();
cancelEditMode(); cancelEditMode();
}, },
error: function(xhr, ajaxOptions, thrownError) { error: function(xhr, ajaxOptions, thrownError) {
dropdownList.sortable('disable');
var verticalHeight = $(li).offset().top;
dropdownList.scrollTo(verticalHeight,0);
$(li).clearFormErrors(); $(li).clearFormErrors();
var msg = $.parseJSON(xhr.responseText); var msg = $.parseJSON(xhr.responseText);
renderFormError(event, renderFormError(event,