mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
fixed error mesage scroll
This commit is contained in:
parent
b003d192c3
commit
b164886270
1 changed files with 4 additions and 0 deletions
|
@ -1032,12 +1032,16 @@ function changeToEditMode() {
|
|||
data: {custom_field: {name: newName}},
|
||||
dataType: 'json',
|
||||
success: function() {
|
||||
dropdownList.sortable('enable');
|
||||
text.text(newName);
|
||||
$(table.columns().header()).filter('#' + id).text(newName);
|
||||
$(li).clearFormErrors();
|
||||
cancelEditMode();
|
||||
},
|
||||
error: function(xhr, ajaxOptions, thrownError) {
|
||||
dropdownList.sortable('disable');
|
||||
var verticalHeight = $(li).offset().top;
|
||||
dropdownList.scrollTo(verticalHeight,0);
|
||||
$(li).clearFormErrors();
|
||||
var msg = $.parseJSON(xhr.responseText);
|
||||
renderFormError(event,
|
||||
|
|
Loading…
Reference in a new issue