From e73aab40dea379f5948326931038d32e51172624 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 13 Apr 2016 20:51:06 +0200 Subject: [PATCH] Bug 16238: Use .prop() instead of .attr() for 'readonly' Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../prog/en/modules/serials/subscription-add.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt index a016439b0b..d17eeaa23e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt @@ -197,11 +197,11 @@ function toggleAdvancedPattern() { } function modifyAdvancedPattern() { - $("#patternname").attr("readonly", false).val(''); - $("#numberingmethod").attr("readonly", false); + $("#patternname").prop('readOnly', false).val(''); + $("#numberingmethod").prop('readOnly', false); $("#advancedpredictionpatternt input").each(function() { - $(this).attr("readonly", false); + $(this).prop('readOnly', false); }); $("#advancedpredictionpatternt select").each(function() { $(this).prop('disabled', false); @@ -215,11 +215,11 @@ function modifyAdvancedPattern() { } function restoreAdvancedPattern() { - $("#patternname").attr("readonly", true).val(globalnumpatterndata.label); - $("#numberingmethod").attr("readonly", true).val(globalnumpatterndata.numberingmethod); + $("#patternname").prop('readOnly', true).val(globalnumpatterndata.label); + $("#numberingmethod").prop('readOnly', true).val(globalnumpatterndata.numberingmethod); $("#advancedpredictionpatternt input").each(function() { - $(this).attr("readonly", true); + $(this).prop('readOnly', true); var id = $(this).attr('id'); if(id.match(/lastvalue/) || id.match(/innerloop/)) { var tempid = id.replace(/(\d)/, "temp$1"); -- 2.39.5