Experimenting with keyboard shortcuts
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
100e95484f
commit
7548a42059
6 changed files with 14 additions and 27 deletions
|
@ -178,22 +178,6 @@ ol li {
|
|||
padding-left : 0;
|
||||
}
|
||||
|
||||
/*#toplevelnav ul {
|
||||
margin : 0;
|
||||
padding : 0;
|
||||
}
|
||||
|
||||
#toplevelnav li, #submenu li {
|
||||
display : inline;
|
||||
border-right : 1px solid #E8E8E8;
|
||||
padding : 0 .5em;
|
||||
white-space : nowrap;
|
||||
}
|
||||
|
||||
#toplevelnav li:last-child, #submenu li:last-child {
|
||||
border : 0;
|
||||
}*/
|
||||
|
||||
table {
|
||||
border-collapse : collapse;
|
||||
border-top : 1px solid #BCBCBC;
|
||||
|
|
|
@ -53,7 +53,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
|
|||
<!-- TMPL_IF NAME="CircAutocompl" -->
|
||||
<div class="autocomplete">
|
||||
<div id="borrowerautocomplete" class="autocomplete">
|
||||
<input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
|
||||
<input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" accesskey="u" />
|
||||
<div id="yborrowercontainer"></div>
|
||||
<input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
|
||||
<input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
|
||||
|
@ -61,7 +61,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
|
|||
</div>
|
||||
</div>
|
||||
<!-- TMPL_ELSE -->
|
||||
<input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
|
||||
<input id="findborrower" name="findborrower" size="40" class="focus" type="text" accesskey="u" />
|
||||
<input name="branch" value="<!-- TMPL_VAR name="branch" -->" type="hidden" />
|
||||
<input name="printer" value="" type="hidden" />
|
||||
<input value="Submit" class="submit" type="submit" />
|
||||
|
@ -72,7 +72,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
|
|||
<div id="checkin_search" class="residentsearch">
|
||||
<p class="tip">Scan a barcode to check in:</p>
|
||||
<form method="post" action="/cgi-bin/koha/circ/returns.pl">
|
||||
<input name="barcode" id="ret_barcode" size="40" />
|
||||
<input name="barcode" id="ret_barcode" size="40" accesskey="r" />
|
||||
<input value="Submit" class="submit" type="submit" />
|
||||
</form>
|
||||
</div><!-- /TMPL_IF -->
|
||||
|
@ -80,7 +80,7 @@ YAHOO.util.Event.onContentReady("header_search", function() {
|
|||
<div id="catalog_search" class="residentsearch">
|
||||
<p class="tip">Enter search keywords:</p>
|
||||
<form action="/cgi-bin/koha/catalogue/search.pl" method="get" id="cat-search-block">
|
||||
<input type="text" name="q" id="search-form" size="40" />
|
||||
<input type="text" name="q" id="search-form" size="40" accesskey="q" />
|
||||
<input type="submit" class="submit" value="Submit"/>
|
||||
</form>
|
||||
</div><!-- /TMPL_IF -->
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<!-- /TMPL_LOOP -->
|
||||
<!-- /TMPL_IF -->
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/jquery.js"></script>
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tabs.pack.js"></script>
|
||||
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tabs.pack.js"></script><script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.hotkeys.js"></script>
|
||||
<!-- TMPL_IF NAME="js_libs" -->
|
||||
<!-- TMPL_LOOP NAME="js_libs" --><script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/<!-- TMPL_VAR NAME="lib" -->"></script>
|
||||
<!-- /TMPL_LOOP -->
|
||||
|
|
|
@ -12,6 +12,9 @@ function _(s) { return s } // dummy function for gettext
|
|||
$(".close").click(function(){
|
||||
window.close();
|
||||
});
|
||||
if($("#header_search #checkin_search")){ $.hotkeys.add('Alt+r',function (){$("#header_search").triggerTab(2); }); }
|
||||
if($("#header_search #circ_search")){ $.hotkeys.add('Alt+u',function (){ $("#header_search").triggerTab("#circ_search"); }); }
|
||||
if($("#header_search #catalog_search")){ $.hotkeys.add('Alt+q',function (){ $("#header_search").triggerTab(3); }); }
|
||||
});
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -58,7 +58,7 @@
|
|||
<ul><li>
|
||||
<form method="post" action="/cgi-bin/koha/circ/circulation.pl">
|
||||
<label for="navfindborrower">Check out to:</label>
|
||||
<input id="navfindborrower" name="findborrower" type="text" size="10" />
|
||||
<input accesskey="u" id="navfindborrower" name="findborrower" type="text" size="10" />
|
||||
<input type="hidden" name="branch" value="<!-- TMPL_VAR name="branch" -->" />
|
||||
<input type="hidden" name="printer" value="<!-- TMPL_VAR name="printer" -->" />
|
||||
<input type="submit" class="submit" value="OK" />
|
||||
|
|
Loading…
Reference in a new issue