From d7652bd39e7555cd963b80272d9876d2b45d1433 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 10 Mar 2008 15:19:44 -0500 Subject: [PATCH] Tweaks for addbiblio, including correction for tabs update and addition of automatic focus for the first field in each tab. Signed-off-by: Joshua Ferraro --- koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 4 ---- .../prog/en/modules/cataloguing/addbiblio.tmpl | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css index 40dc79772f..dc0b2eb9ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/addbiblio.css @@ -32,3 +32,7 @@ a.expandfield { margin-top : 1em; margin-bottom : 1em; } + +.toptabs .ui-tabs-nav li a { + padding : .2em 1.2em; +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index ebf380e431..c5a11ebf59 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -675,10 +675,6 @@ fieldset.rows .inputnote { z-index : 2; } -.toptabs.numbered .ui-tabs-nav li { - min-width : 3em; -} - .toptabs .tabs-container { border : 1px solid #E8E8E8; padding : 1em; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl index 31354a189b..7bd290154a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl @@ -6,8 +6,12 @@ // ul').tabs(); + $('#addbibliotabs > ul').tabs().bind('show.ui-tabs', function(e, ui) { + $("#"+ui.panel.id+" input:eq(0)").focus(); + }); }); + + $('#header_search > ul').tabs().bind('show.ui-tabs', function(e, ui) { $('#header_search > div:not(.ui-tabs-hide)').find('input').eq(0).focus(); }); function confirmnotdup(){ $("#confirm_not_duplicate").attr("value","1"); -- 2.39.5