From: Marcus Ramberg Date: Thu, 16 Sep 2004 17:50:14 +0000 (+0000) Subject: removed broken javascript. X-Git-Tag: 2.10~175 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=63830bac51f24c669f09544b97ea14480eb53c14;p=maypole.git removed broken javascript. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@187 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/templates/beer/addnew b/templates/beer/addnew index 05aea1b..20ec419 100644 --- a/templates/beer/addnew +++ b/templates/beer/addnew @@ -7,19 +7,6 @@ [% FOR col = classmetadata.columns; NEXT IF col == "id"; SET element = classmetadata.cgi.$col; - IF col == "brewery"; - SET create_url = base _ "/brewery/edit"; - SET new_element = element_maker.new("option", - "class", "redirect", - "value", create_url).push_content("Create new brewery"); - SET child = element.content_list.first; - SET foo = element.attr("name", "navi"); - SET child = child.attr("selected", "selected"); - SET element = - element.unshift_content(element_maker.new("option", value," ")); - element.attr("onChange", "go()"); - SET element = element.unshift_content(new_element); - END; %]