mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-11 09:26:37 +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}},
|
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,
|
||||||
|
|
Loading…
Reference in a new issue