Respect adv_break with clear: both
authorDan Scott <dscott@laurentian.ca>
Thu, 19 Sep 2013 14:38:40 +0000 (10:38 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 22:42:09 +0000 (18:42 -0400)
This keeps the old behaviour, in all ways, but rather than using a specific
/ arbitrary pixel width it uses clear:both to start a new line for a new
adv_break.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/css/style.css.tt2
Open-ILS/src/templates/opac/parts/config.tt2

index bb4a2f2..ecbf8de 100644 (file)
@@ -296,6 +296,7 @@ span.dash_divider {
 #adv_filter_block {
     padding: 15px;
     float: left;
+    clear: both;
 }
 #adv_filter_block_item {
     float: left;
index 65861b2..bd4f77c 100644 (file)
@@ -115,7 +115,7 @@ search.adv_config = [
     {adv_label => l("Item Type"), adv_attr => ["mattype", "item_type"]},
     {adv_label => l("Item Form"), adv_attr => "item_form"},
     {adv_label => l("Language"),  adv_attr => "item_lang"},
-    {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"]},
+    {adv_label => l("Audience"),  adv_attr => ["audience_group", "audience"], adv_break => 1},
     {adv_label => l("Video Format"), adv_attr => "vr_format"},
     {adv_label => l("Bib Level"), adv_attr => "bib_level"},
     {adv_label => l("Literary Form"), adv_attr => "lit_form"},