From 64e391491edca79a7e3e7f749792b3d07812185d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Apr 2016 09:01:26 -0400 Subject: [PATCH] Bug 16238 [Follow-up] Upgrade jQuery in staff client: use .prop() instead of .attr() This patch corrects some tabs which should have been replaced with spaces. To test, diff against the previous commit with the '-w' flag. There should be no visible changes. Signed-off-by: Bernardo Gonzalez Kriegel Space changes, no errors. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt index 461a8b0566..773ba412b3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt @@ -73,7 +73,7 @@ tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } }; var success_test_call = function() { - $('#test_button').prop('disabled', false); + $('#test_button').prop('disabled', false); $('#test_button').attr("value","test"); }; $(document).ready(function() { @@ -100,7 +100,7 @@ tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } "success": count_approve // success_approve }); $(event.target).next(".rej").prop('disabled', false).attr("value",_("Reject")).css("color","#000"); - $(event.target).attr( "value",_("Approved")).prop('disabled', true).css("color","#666"); + $(event.target).attr( "value",_("Approved")).prop('disabled', true).css("color","#666"); return false; // cancel submit } if ($(event.target).is('.rej')) { @@ -109,11 +109,11 @@ tr > td input,td input[type="submit"] { font-size: 85%; padding: 1px; } "success": count_reject // success_reject }); $(event.target).prev(".ok").prop('disabled', false).attr("value",_("Approve")).css("color","#000"); - $(event.target).attr( "value",_("Rejected")).prop('disabled', true).css("color","#666"); + $(event.target).attr( "value",_("Rejected")).prop('disabled', true).css("color","#666"); return false; // cancel submit } if ($(event.target).is('#test_button')) { - $(event.target).attr( "value",_("Testing...")).prop('disabled', true); + $(event.target).attr( "value",_("Testing...")).prop('disabled', true); $.ajax({ "data": {test: $('#test').attr("value")}, "success": success_test_call // success_reject -- 2.39.5