From 9cb9bf6c1a33e6e67e90e1307b0a9df1df11e5a4 Mon Sep 17 00:00:00 2001 From: wvengen Date: Tue, 26 Nov 2013 13:00:34 +0100 Subject: [PATCH] focus newly added input in receive --- app/views/finance/receive/add_article.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/finance/receive/add_article.js.erb b/app/views/finance/receive/add_article.js.erb index b73b6719..c16259eb 100644 --- a/app/views/finance/receive/add_article.js.erb +++ b/app/views/finance/receive/add_article.js.erb @@ -11,4 +11,6 @@ $('div.container-fluid').prepend( $('.ordered-articles tbody').append(article_for_adding); updateSort('.ordered-articles'); + + $('#order_articles_<%= @order_article.id %>_units_received').focus(); })();