adds hook for lock task action

This commit is contained in:
zmagod 2017-02-21 16:25:50 +01:00
parent ea1711be83
commit 151dc79a81
2 changed files with 13 additions and 1 deletions

View file

@ -1293,7 +1293,18 @@ function changeToEditMode() {
modal.modal('show');
},
error: function(xhr) {
// TODO
dropdownList.sortable('disable');
$(li).clearFormErrors();
var msg = $.parseJSON(xhr.responseText);
renderFormError(undefined,
$(li).find('.text-edit'),
Object.keys(msg)[0] + ' ' + msg.name.toString());
var verticalHeight = $(li).offset().top;
dropdownList.scrollTo(verticalHeight,0);
setTimeout(function() {
$(li).clearFormErrors();
}, 5000);
}
});
});

View file

@ -13,3 +13,4 @@
</div>
<% end %>
</div>
<span data-hook="my_module-protocol-buttons"></span>