From 59eaea87badbf78173047aefaab562eb0ce8268f Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Fri, 25 Sep 2015 13:01:42 +0200 Subject: [PATCH] fix jQuery compatibility issue --- debianmemberportfolio/templates/showformscript.mako | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debianmemberportfolio/templates/showformscript.mako b/debianmemberportfolio/templates/showformscript.mako index 466fc9a..9cac439 100644 --- a/debianmemberportfolio/templates/showformscript.mako +++ b/debianmemberportfolio/templates/showformscript.mako @@ -1,7 +1,7 @@ ## -*- coding: utf-8 -*- \ <%doc> Helper JavaScript for the data input form. -Copyright © 2009, 2010 Jan Dittberner +Copyright © 2009, 2010, 2015 Jan Dittberner This file is part of DDPortfolio service. @@ -84,7 +84,7 @@ function updateFields(data, textStatus) { } function onChangeShowAll(event) { - if ($('#showall').attr('checked')) { + if ($('#showall').prop('checked')) { for (var fielddiv in allfielddivs) { $(allfielddivs[fielddiv]).show(); } @@ -96,10 +96,10 @@ function onChangeShowAll(event) { } function onBlurEmail() { - if ($.trim($('#email').attr('value')).length > 0) { + if ($.trim($('#email').prop('value')).length > 0) { $.ajax({ 'url' : '${h.url(controller="showformscripts", action="fetchdddata")}', - 'data' : {'email' : $('#email').attr('value')}, + 'data' : {'email' : $('#email').prop('value')}, 'dataType' : 'json', 'success' : updateFields, 'error' : function(request, textStatus, errorThrown) {