Merge pull request #355 from ZmagoD/zd_fix_mozilla_compatibility_issue

fixes compatibility issue on mozilla firefox
This commit is contained in:
Zmago Devetak 2016-12-16 11:57:18 +01:00 committed by GitHub
commit 601594fdb9

View file

@ -1056,11 +1056,12 @@ function changeToEditMode() {
cancelEditMode();
},
error: function(xhr, ajaxOptions, thrownError) {
error: function(xhr) {
dropdownList.sortable('disable');
$(li).clearFormErrors();
var msg = $.parseJSON(xhr.responseText);
renderFormError(event,
renderFormError(xhr,
$(li).find('.text-edit'),
Object.keys(msg)[0] + ' ' + msg.name.toString());
var verticalHeight = $(li).offset().top;