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) {