Bug 11325: Focus not on "Add Item" in Lists
When viewing a list, the focus/cursor is no longer on the "add items" field below the list. This patch moves the "Add Item" form at left part of page so that it is always shown (usefull when there are a lot of items). And adds focus to barcode input so you can enter several items with a barcode scanner. Test instructions: 1. Create a list 2. Make sure you have an object with an assigned barcode 3. Go to the list => The barcode entry interface should be at left and has the focus 4. Enter the barcode and press enter (or use a scanner) => The item is added to the list Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> I like the new position. Works well, focus on input box No errors Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
This commit is contained in:
parent
8fa214bfa5
commit
78d83e0641
1 changed files with 28 additions and 22 deletions
|
@ -302,9 +302,11 @@ function placeHold () {
|
|||
|
||||
[% IF ( viewshelf ) %]› Contents of <i>[% shelfname | html %]</i>[% END %][% IF ( shelves ) %] › Create new list[% END %][% IF ( edit ) %] › Edit list <i>[% shelfname | html %]</i>[% END %]</div>
|
||||
|
||||
<div id="doc2" class="yui-t7">
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div id="doc3" class="yui-t2">
|
||||
<div id="bd">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b">
|
||||
|
||||
<div class="yui-g">[% INCLUDE 'virtualshelves-toolbar.inc' %]
|
||||
</div>
|
||||
[% IF ( paramsloop ) %]
|
||||
|
@ -483,25 +485,6 @@ function placeHold () {
|
|||
</div>
|
||||
[% END %]<!-- /viewshelf -->
|
||||
|
||||
[% IF ( allowaddingitem ) %]
|
||||
<div class="yui-g">
|
||||
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
|
||||
<fieldset class="brief noprint">
|
||||
<legend>Add an item to <i>[% shelfname | html %]</i></legend>
|
||||
<ol>
|
||||
<li>
|
||||
<label for="addbarcode">Barcode:</label>
|
||||
<input name="addbarcode" type="text" id="addbarcode" size="14" />
|
||||
<input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
|
||||
<input type="hidden" name="modifyshelfcontents" value="1" />
|
||||
<input type="submit" value="Add" />
|
||||
</li>
|
||||
</ol>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
[% END %]<!-- /allowaddingitem -->
|
||||
|
||||
[% IF ( debug ) %]
|
||||
[% IF ( edit ) %]<div>Edit is on ([% shelfname | html %])</div>[% END %]
|
||||
[% IF ( seflag ) %]<div>seflag is on ([% seflag %])</div>[% END %]
|
||||
|
@ -651,5 +634,28 @@ function placeHold () {
|
|||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
[% IF ( allowaddingitem ) %]
|
||||
<div class="yui-b">
|
||||
<form action="/cgi-bin/koha/virtualshelves/shelves.pl" method="post">
|
||||
<fieldset class="brief">
|
||||
<legend>Add an item</legend>
|
||||
<ol>
|
||||
<li>
|
||||
<label for="addbarcode">Barcode:</label>
|
||||
<input name="addbarcode" type="text" id="addbarcode" class="focus" />
|
||||
<input type="hidden" name="viewshelf" value="[% shelfnumber %]" />
|
||||
<input type="hidden" name="modifyshelfcontents" value="1" />
|
||||
</li>
|
||||
</ol>
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Add" />
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
[% END %]<!-- /allowaddingitem -->
|
||||
|
||||
</div>
|
||||
[% INCLUDE 'intranet-bottom.inc' %]
|
||||
|
|
Loading…
Reference in a new issue