From 63830bac51f24c669f09544b97ea14480eb53c14 Mon Sep 17 00:00:00 2001 From: Marcus Ramberg Date: Thu, 16 Sep 2004 17:50:14 +0000 Subject: [PATCH] removed broken javascript. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@187 48953598-375a-da11-a14b-00016c27c3ee --- templates/beer/addnew | 13 ------------- templates/factory/header | 13 +------------ 2 files changed, 1 insertion(+), 25 deletions(-) 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; %]