mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
app/assets/javascripts/samples/sample_datatable.js
This commit is contained in:
parent
b164886270
commit
3e31f114d4
1 changed files with 2 additions and 2 deletions
|
@ -1040,13 +1040,13 @@ function changeToEditMode() {
|
|||
},
|
||||
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,
|
||||
$(li).find('.text-edit'),
|
||||
Object.keys(msg)[0] + ' '+ msg.name.toString());
|
||||
var verticalHeight = $(li).offset().top;
|
||||
dropdownList.scrollTo(verticalHeight,0);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue