diff --git a/lib/Coocook/Controller/Recipe.pm b/lib/Coocook/Controller/Recipe.pm index 77d223bf..21045905 100644 --- a/lib/Coocook/Controller/Recipe.pm +++ b/lib/Coocook/Controller/Recipe.pm @@ -106,7 +106,6 @@ sub edit : GET HEAD Chained('base') PathPart('') Args(0) RequiresCapability('vie $c->user and $c->stash( import_url => $c->uri_for_action( '/browse/recipe/import', [ $recipe->id, $recipe->url_name ] ) ); - } sub new_recipe : GET HEAD Chained('submenu') PathPart('recipes/new') diff --git a/root/static/js/script.js b/root/static/js/script.js index 8910b1a2..70e03a52 100644 --- a/root/static/js/script.js +++ b/root/static/js/script.js @@ -1,3 +1,5 @@ +"use strict"; + $(function() { // reduce options of -
-

Name:

-

Comment:

-

Servings: Changing here doesn’t recalculate values!

-

Tags:

-

- -

+ +

Name:

+

Comment:

+

Servings: Changing here doesn’t recalculate values!

+

Tags:

+

+ +

-

Preparation

- +

Preparation

+ -

Description

- +

Description

+ -

+

-

Ingredients

+

Ingredients

-[% INCLUDE 'includes/forms/ingredients_editor.tt' %] + [% INCLUDE 'includes/forms/ingredients_editor.tt' %] - +
[% INCLUDE 'includes/forms/ingredients_add.tt' %] diff --git a/root/templates/recipe/edit.tt b/root/templates/recipe/edit.tt index b99d1a46..d728a767 100644 --- a/root/templates/recipe/edit.tt +++ b/root/templates/recipe/edit.tt @@ -13,7 +13,7 @@ [% END %] -
+