mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-05 14:41:53 +08:00
adds hook for lock task action
This commit is contained in:
parent
ea1711be83
commit
151dc79a81
2 changed files with 13 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -13,3 +13,4 @@
|
|||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<span data-hook="my_module-protocol-buttons"></span>
|
||||
|
|
Loading…
Reference in a new issue