mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-06 06:56:54 +08:00
Merge pull request #355 from ZmagoD/zd_fix_mozilla_compatibility_issue
fixes compatibility issue on mozilla firefox
This commit is contained in:
commit
601594fdb9
1 changed files with 4 additions and 3 deletions
|
@ -1056,13 +1056,14 @@ function changeToEditMode() {
|
||||||
|
|
||||||
cancelEditMode();
|
cancelEditMode();
|
||||||
},
|
},
|
||||||
error: function(xhr, ajaxOptions, thrownError) {
|
error: function(xhr) {
|
||||||
dropdownList.sortable('disable');
|
dropdownList.sortable('disable');
|
||||||
$(li).clearFormErrors();
|
$(li).clearFormErrors();
|
||||||
var msg = $.parseJSON(xhr.responseText);
|
var msg = $.parseJSON(xhr.responseText);
|
||||||
renderFormError(event,
|
|
||||||
|
renderFormError(xhr,
|
||||||
$(li).find('.text-edit'),
|
$(li).find('.text-edit'),
|
||||||
Object.keys(msg)[0] + ' '+ msg.name.toString());
|
Object.keys(msg)[0] + ' ' + msg.name.toString());
|
||||||
var verticalHeight = $(li).offset().top;
|
var verticalHeight = $(li).offset().top;
|
||||||
dropdownList.scrollTo(verticalHeight,0);
|
dropdownList.scrollTo(verticalHeight,0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue