From 2ec3d382389cd6b3389b4491d86c6477fd3a39a7 Mon Sep 17 00:00:00 2001 From: Julius Date: Thu, 2 Jan 2014 21:17:55 +0100 Subject: [PATCH] Set readonly property with javascript by .prop instead of .attr --- app/views/orders/_edit_amounts.html.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/orders/_edit_amounts.html.haml b/app/views/orders/_edit_amounts.html.haml index 9c1adb5d..ab143f92 100644 --- a/app/views/orders/_edit_amounts.html.haml +++ b/app/views/orders/_edit_amounts.html.haml @@ -62,8 +62,7 @@ } function unlock_receive_input_field() { - var order_article_entry = $(this).closest('tr'); - $('.units_received', order_article_entry).removeAttr('readonly'); + $('.units_received', $(this).closest('tr')).prop('readonly', false); $(this).remove(); }