Fix for Bug 4912 - After editing private list redirect to private lists

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Owen Leonard 2010-11-12 22:48:41 -05:00 committed by Chris Cormack
parent c0272a6b66
commit 38360b766c
3 changed files with 11 additions and 3 deletions

View file

@ -274,6 +274,7 @@ function placeHold () {
<!-- TMPL_IF name="edit" -->
<input type="hidden" name="op" value="modifsave" />
<!-- TMPL_IF NAME="showprivateshelves" --><input type="hidden" name="display" value="privateshelves" /><!-- /TMPL_IF -->
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR name="shelfnumber" -->" />
<legend>Edit List <i><!-- TMPL_VAR name="shelfname" --></i></legend>
<ol>
@ -306,7 +307,9 @@ function placeHold () {
<!-- /TMPL_IF -->
</fieldset>
<fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" /><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a></fieldset>
<fieldset class="action"><input type="submit" onclick="Check(this.form); return false;" value="Save" class="submit" />
<!-- TMPL_IF NAME="showprivateshelves" --><a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves" class="cancel">Cancel</a><!-- TMPL_ELSE --><a href="/cgi-bin/koha/virtualshelves/shelves.pl" class="cancel">Cancel</a><!-- /TMPL_IF -->
</fieldset>
</form>
</div>
<div class="yui-u">
@ -360,6 +363,7 @@ function placeHold () {
<form action="shelves.pl" method="get">
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelf" -->" />
<input type="hidden" name="op" value="modif" />
<input type="hidden" name="display" value="privateshelves" />
<input type="submit" class="editshelf" value="Edit" />
</form>
<form action="shelves.pl" method="post">

View file

@ -572,7 +572,10 @@ input.deleteshelf {
}
#toolbar input.editshelf:active,input.deleteshelf:active {
#toolbar input.editshelf:active,
input.editshelf:active,
#toolbar input.deleteshelf:active,
input.deleteshelf:active {
border : 0;
}

View file

@ -309,6 +309,7 @@ $(function() {
<h3><a href="/cgi-bin/koha/opac-shelves.pl">Lists</a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> <a href="/cgi-bin/koha/opac-shelves.pl?viewshelf=<!-- TMPL_VAR NAME="shelfnumber" -->"><em><!-- TMPL_VAR NAME="shelfname" ESCAPE="html" --></em></a> <img src="<!-- TMPL_VAR NAME="themelang" -->/../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Editing</h3>
<form method="post" action="/cgi-bin/koha/opac-shelves.pl">
<input type="hidden" name="op" value="modifsave" />
<!-- TMPL_IF NAME="showprivateshelves" --><input type="hidden" name="display" value="privateshelves" /><!-- /TMPL_IF -->
<input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" />
<fieldset class="rows">
<ol>
@ -330,7 +331,7 @@ $(function() {
</li>
</ol>
</fieldset>
<fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->">Cancel</a></fieldset>
<fieldset class="action"><input type="submit" value="Save" class="submit" /> <!-- TMPL_IF NAME="showprivateshelves" --><a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->&amp;display=privateshelves">Cancel</a><!-- TMPL_ELSE --><a class="cancel" href="/cgi-bin/koha/opac-shelves.pl?shelfnumber=<!-- TMPL_VAR NAME="shelfnumber" -->">Cancel</a><!-- /TMPL_IF --></fieldset>
</form>
<!-- /TMPL_IF --><!-- /edit -->