From 8ea1322447c4750d014d3f9f93482db02cdf93dc Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 2 Feb 2010 15:07:12 -0500 Subject: [PATCH] Fix for Bug 4097, Problems with print stylesheet and add item screen - consolidating some details in print.css - moving overflow:scroll from additem.tmpl to staff-global.css - overriding overflow:scroll in print.css Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/css/print.css | 23 ++++++----- .../prog/en/css/staff-global.css | 3 ++ .../prog/en/modules/cataloguing/additem.tmpl | 40 +++++++++---------- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/print.css b/koha-tmpl/intranet-tmpl/prog/en/css/print.css index 16996611f5..955b68b321 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/print.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/print.css @@ -198,15 +198,6 @@ tr.highlight { display : inline; } -.print { - display : none; -} - -input, fieldset.action, .list-actions { - display: none; -} - - tr.overdue { font-weight : bold; } @@ -304,8 +295,12 @@ div#changelanguage, div#menu, div.yui-b, .noprint, -form#sortbyform { - display:none; +form#sortbyform, +#cartDetails, +fieldset.action, +.list-actions, +.print { + display: none; } div#yui-main div.yui-b { @@ -317,3 +312,9 @@ div#yui-main div.yui-b { .yui-t7 #yui-main div.yui-b { margin-left : 0; } +fieldset { + border : 0; +} +#cataloguing_additem_itemlist { + overflow : visible !important; +} \ 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 0be3df7a56..5efd709db6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -1858,3 +1858,6 @@ img.spinner { vertical-align: middle; padding-right: 0.3em; } +#cataloguing_additem_itemlist div { + overflow : scroll; +} \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl index 9d2d864251..d0be87580c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl @@ -59,9 +59,9 @@ function Check(f) { } function CheckMultipleAdd(f) { - if (!f || isNaN(f) || !parseInt(f) == f || f <= 0) { - alert(_("Please enter a number of items to create.")); - return false; + if (!f || isNaN(f) || !parseInt(f) == f || f <= 0) { + alert(_("Please enter a number of items to create.")); + return false; } } function Dopop(link,i) { @@ -87,12 +87,12 @@ function CloneSubfield(index){ var old_id = original.getAttribute('id'); old_id=old_id.substr(12); var new_id = old_id+new_key; - + // set the attribute for the new 'div' subfields var inputs = clone.getElementsByTagName('input'); var selects = clone.getElementsByTagName('select'); var textareas = clone.getElementsByTagName('textarea'); - + // input var id_input = ""; for(var i=0,len=inputs.length; i // when cloning a subfield, reset its label too. var label = clone.getElementsByTagName('label')[0]; label.setAttribute('for',id_input); - + // setting a new if for the parent div clone.setAttribute('id',new_id); - + var CloneButtonPlus; try { var spans = clone.getElementsByTagName('span'); @@ -179,7 +179,7 @@ function set_to_today(id, force) {
- +
@@ -194,7 +194,7 @@ function set_to_today(id, force) {
-
+
@@ -226,12 +226,12 @@ function set_to_today(id, force) {

Add Item

Edit Item #

- +
  1. "> - + " /> @@ -240,7 +240,7 @@ function set_to_today(id, force) { ')">+ - +
@@ -251,9 +251,9 @@ function set_to_today(id, force) {
- @@ -268,7 +268,7 @@ function set_to_today(id, force) { " /> " /> " /> - +
-- 2.39.5