Readonly receive input if GroupOrderArticle result has manually been changed
Conflicts: app/helpers/orders_helper.rb app/views/orders/_edit_amount.html.haml
This commit is contained in:
parent
7aae7f4d55
commit
98f59a3de3
7 changed files with 43 additions and 9 deletions
|
|
@ -35,6 +35,8 @@
|
|||
});
|
||||
|
||||
init_add_article('#add_article');
|
||||
|
||||
$('.unlocker', '#order_articles tbody').on('click', unlock_receive_input_field);
|
||||
});
|
||||
|
||||
function init_add_article(sel) {
|
||||
|
|
@ -58,6 +60,12 @@
|
|||
$('#add_article').select2('data', null);
|
||||
}).select2('data', null);
|
||||
}
|
||||
|
||||
function unlock_receive_input_field() {
|
||||
var order_article_entry = $(this).closest('tr');
|
||||
$('.units_received', order_article_entry).removeAttr('readonly');
|
||||
$(this).remove();
|
||||
}
|
||||
|
||||
%table#order_articles.ordered-articles.table.table-striped.stupidtable
|
||||
%thead
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue