diff --git a/ddportfolioservice/lib/helpers.py b/ddportfolioservice/lib/helpers.py index 88fa1f8..683686d 100644 --- a/ddportfolioservice/lib/helpers.py +++ b/ddportfolioservice/lib/helpers.py @@ -27,7 +27,7 @@ available to Controllers. This module is available to templates as 'h'. """ from webhelpers.html.builder import escape, literal from webhelpers.html.tags import stylesheet_link, javascript_link, image, \ - form, text, radio, submit, end_form, link_to + form, text, radio, submit, end_form, link_to, checkbox from webhelpers.text import truncate from webhelpers.textile import textile from pylons import url diff --git a/ddportfolioservice/templates/showformscript.mako b/ddportfolioservice/templates/showformscript.mako index b2c841c..feacc8b 100644 --- a/ddportfolioservice/templates/showformscript.mako +++ b/ddportfolioservice/templates/showformscript.mako @@ -98,7 +98,7 @@ function onChangeShowAll(event) { function onBlurEmail() { if ($.trim($('#email').attr('value')).length > 0) { $.ajax({ - 'url' : '${h.url_for(action='fetchdddata')}', + 'url' : '${h.url(controller="showformscripts", action="fetchdddata")}', 'data' : {'email' : $('#email').attr('value')}, 'dataType' : 'json', 'success' : updateFields,