]> git.decadent.org.uk Git - maypole.git/commitdiff
removed broken javascript.
authorMarcus Ramberg <mramberg@cpan.org>
Thu, 16 Sep 2004 17:50:14 +0000 (17:50 +0000)
committerMarcus Ramberg <mramberg@cpan.org>
Thu, 16 Sep 2004 17:50:14 +0000 (17:50 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@187 48953598-375a-da11-a14b-00016c27c3ee

templates/beer/addnew
templates/factory/header

index 05aea1baa54b630c0ffffe5cfd596323afa2416b..20ec419b575f54aea0c86a9cca22e207c60643ea 100644 (file)
@@ -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;
             %]
        <label>
                 <span class="field">[% classmetadata.colnames.$col; %]</span>
index bb1054fbdd62525890ee5be9893daeaa40dabbe8..8712c85b096ac5a00d583f0e43d144a9897db52c 100644 (file)
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
         <link title="Maypole" href="/maypole.css" type="text/css"
             rel="stylesheet"/>
-        <script type="text/javascript">
-            <!--
-                function go()
-                {
-                    box = document.forms[-1].navi;
-                    destination = box.options[box.selectedIndex].value;
-                    if (box.options[box.selectedIndex].class == 'redirect')
-                        location.href = destination;
-                }
-            // -->
-        </script>
-    </head>
+   </head>
     <body>
         <div class="content">