Add 'Save and return to album' button after Edit Album?

rick7

Joined: 2005-03-02
Posts: 168
Posted: Tue, 2007-08-14 18:10

Hello -- I spend a lot of time in Edit Album, doing quick edits and going right back to the album to view the edit I just made. It's pretty time-consuming to have to do two clicks after I make my edits -- the 'Save' button and then the 'Back to Album' link.

How about a new 'Save and Return to Album' button at the bottom of the three Edit Album tab pages right next to the existing 'Save' (or 'Save Theme Settings') and 'Reset' buttons?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2007-08-18 19:31

adding a button is a bit more involved, but here's a quick hack:

in modules/core/ItemEdit.inc find where it assigns $results['redirect']. after these lines, add:
if ($editPlugin == 'ItemEditAlbum') $results['return'] = 1;
now the Save button should return to the previous view.