Page 1 of 1

Add Save and Cancel Buttons to the Bottom

Posted: Mon Dec 14, 2009 2:26 pm
by montanaflynn
I thought it was weird having to scroll to the top of the page to save product edits and other forms. So I created a small script that duplicates the save and cancel buttons and adds them to the bottom of the page as well as the top. It works by simply adding this jQuery code to your admin/view/template/common/header.tpl file after the jQuery script.

Code: Select all

<script type="text/javascript"> 
$(document).ready(function(){ 
$(".buttons").clone().appendTo("#content");
}); 
</script>

Re: Add Save and Cancel Buttons to the Bottom

Posted: Mon Dec 14, 2009 9:45 pm
by moggiex
montanaflynn wrote:I thought it was weird having to scroll to the top of the page to save product edits and other forms. So I created a small script that duplicates the save and cancel buttons and adds them to the bottom of the page as well as the top. It works by simply adding this jQuery code to your admin/view/template/common/header.tpl file after the jQuery script.

Code: Select all

<script type="text/javascript"> 
$(document).ready(function(){ 
$(".buttons").clone().appendTo("#content");
}); 
</script>
I love hacks like these, so simple and saves the annoyance of going back to the top all the time.

Exactly why we need a karma button here :D

Matt

Re: Add Save and Cancel Buttons to the Bottom

Posted: Mon Dec 14, 2009 10:05 pm
by Qphoria
moggiex wrote: Exactly why we need a karma button here :D

Really? That's like putting stickers on our notebooks. Karma is meant for "Hello kitty" forums only 8) :D

Re: Add Save and Cancel Buttons to the Bottom

Posted: Tue Dec 29, 2009 11:44 am
by nzjollyroger
does this work for 1.3.2?