Instead of hiding the active page in the My Account select box navigation,
let's disable it so that the menu remains consistent from page to page.
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
class="[% cls_which %]">[% page.name; %]</a>
[% END %]
</div>
- <div id="acct_select">
+ <!- Select box navigation for media view ->
+ <div id="acct_select">
<form name="acct_nav">
<select name="acct_url" aria-label="Select an account page" onchange="window.location.href=document.acct_nav.acct_url.options[document.acct_nav.acct_url.selectedIndex].value">
<option value="" selected="selected">Go to...</option>
[% FOREACH page IN myopac_pages;
IF page.url != myopac_page; %]
<option value="[% mkurl(ctx.opac_root _ '/myopac/' _ page.url, {}, ['bbid', 'offset', 'limit']) %]">[% page.name; %]</option>
- [% END;
+ [% ELSE; %]
+ <option value="" disabled>[% page.name; %]</option>
+ [% END;
END; %]
</select>
</div>