There is a form.
<form method="post" action="/admin/edit_category/<?echo $category['id']?>"> <article class="module width_full"> <header><h3>ΠΠΎΠ²Π°Ρ ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΡ</h3></header> <div class="module_content"> <fieldset> <label>ΠΠ°ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΏΠΎΠ΄ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΠΈ</label> <input type="text" value="<?echo $category['title']?>" name="title" required=""> </fieldset> <fieldset> <label>ΠΠ°ΠΈΠΌΠ΅Π½ΠΎΠ²Π°Π½ΠΈΠ΅ ΠΊΠ°ΡΠ΅Π³ΠΎΡΠΈΠΈ</label> <input type="text" value="<?echo $main_category['title']?>" disabled=""> </fieldset> <div class="clear"></div> </div> <footer> <div class="submit_link"> <input type="submit" value="ΠΠΏΡΠ±Π»ΠΈΠΊΠΎΠ²Π°ΡΡ" class="alt_btn" name="edit"> <input type="submit" value="ΠΠ°Π·Π°Π΄" class="back"> </div> </footer> </article><!-- end of post new article --> </form>
There is a script
<script> $(document).ready(function(){ $(".back").click(function(){ window.location="/admin/list_categories"; }); }); </script>
When you click on the button back, it does not follow the link in the script. Why?