From d3d5fadb4355179703bed6a90ee70c41d95b88c3 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 4 Sep 2007 15:07:00 -0500 Subject: [PATCH] Adding jquery as default js library and staff-global.js for global js functions. Converting form field focus scripts to jquery syntax (use class="focus" for auto-focusing form fields) Signed-off-by: Chris Cormack --- .../prog/en/includes/doc-head-close.inc | 3 +- .../intranet-tmpl/prog/en/js/staff-global.js | 6 +++ .../prog/en/modules/acqui/acqui-home.tmpl | 7 +-- .../prog/en/modules/catalogue/ISBDdetail.tmpl | 43 ++++++++++--------- .../prog/en/modules/catalogue/advsearch.tmpl | 4 +- .../en/modules/cataloguing/addbiblio.tmpl | 4 -- .../prog/en/modules/cataloguing/addbooks.tmpl | 5 +-- .../prog/en/modules/circ/branchtransfers.tmpl | 2 +- .../prog/en/modules/circ/circulation.tmpl | 10 +---- .../prog/en/modules/circ/returns.tmpl | 5 +-- .../en/modules/serials/checkexpiration.tmpl | 3 +- .../modules/serials/serial-issues-full.tmpl | 10 ++--- .../prog/en/modules/z3950/searchresult.tmpl | 3 -- 13 files changed, 44 insertions(+), 61 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index c81fe86be4..2e1f1c618d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -21,7 +21,8 @@ /" /> - + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js new file mode 100644 index 0000000000..51b52660a1 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/js/staff-global.js @@ -0,0 +1,6 @@ +// staff-global.js + + $(document).ready(function() { + $(".focus").focus(); + }); + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tmpl index 6075c046c4..ac8c35689c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/acqui-home.tmpl @@ -1,9 +1,6 @@ Koha › Acquisitions - @@ -23,13 +20,13 @@ You must define a budget in parameters
-

+

-

+

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl index 6a33472fd4..4b91474d68 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tmpl @@ -1,27 +1,6 @@ Koha › Catalogue ISBD Detail - - - - - - -
- -
-
-
- -

MARC biblio :

- - - -
- -
-
- + + + + + + +
+ +
+
+
+ +

MARC biblio :

+ + + +
+ +
+
+ +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl index 1f227f38bc..6d1b313d82 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl @@ -2,8 +2,6 @@ Koha › Catalogue › Advanced Search @@ -25,7 +22,7 @@

- +

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl index 52cd8bac41..ef18799009 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tmpl @@ -136,7 +136,7 @@ Enter barcode - + " /> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index 77ed198237..0c72aa14f5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -53,12 +53,6 @@ } } - - document.mainform.barcode.focus(); // set the focus to the barcode entry. - - document.mainform.findborrower.focus(); // set the focus to te form to search a borrower - - @@ -178,7 +172,7 @@

- +

" /> @@ -307,7 +301,7 @@ No patron matched Checkout an item

- + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl index e1b515cb5b..8fad0f1eed 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl @@ -1,9 +1,6 @@ Koha › Circulation › Returns <!-- TMPL_VAR Name="title" --> - @@ -190,7 +187,7 @@

Enter item barcode

- +

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tmpl index 71181123b4..bfa1058a92 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tmpl @@ -8,7 +8,6 @@