Fix #1160 : Fix advanced search collection list

This commit is contained in:
Romain Neutron
2013-05-06 20:21:52 +02:00
parent 9da8dcc85e
commit e45f4f7de7
3 changed files with 33 additions and 15 deletions

View File

@@ -18,15 +18,23 @@
{% for collection in base["collections"] %}
{% set base_id = collection["base_id"] %}
<li class="clkbas">
<label style="line-height: 18px;" onclick="infoSbas($('#ck_{{base_id}}_{{unique_id}}'),{{sbas_id}}, false, event); return false;"
for="ck_{{base_id}}_{{unique_id}}" class="ck_{{base_id}} {% if collection["selected"] %}selected{% endif %} checkbox">
{{base_id|get_collection_logo(app)|raw}} {{base_id|bas_names(app)}}
<input class="ck_{{collection["base_id"]}} checkbas" style="*margin-top:-18px;"
onclick="cancelEvent(event);return false;"
onmousedown="infoSbas(this, {{sbas_id}}, false, event); return false;"
id="ck_{{collection["base_id"]}}_{{unique_id}}" type="checkbox"
name="bases[]" value="{{collection["base_id"]}}" {% if collection["selected"] %}checked="checked"{% endif %} />
</label>
<table>
<tr>
<td>
<input class="ck_{{collection["base_id"]}} checkbas" style="*margin-top:-18px;"
onclick="cancelEvent(event);return false;"
onmousedown="infoSbas(this, {{sbas_id}}, false, event); return false;"
id="ck_{{collection["base_id"]}}_{{unique_id}}" type="checkbox"
name="bas[]" value="{{collection["base_id"]}}" {% if collection["selected"] %}checked="checked"{% endif %} />
</td>
<td>
<label style="line-height: 18px;" onclick="infoSbas($('#ck_{{base_id}}_{{unique_id}}'),{{sbas_id}}, false, event); return false;"
for="ck_{{base_id}}_{{unique_id}}" class="ck_{{base_id}} {% if collection["selected"] %}selected{% endif %} checkbox">
{{base_id|get_collection_logo(app)|raw}} {{base_id|bas_names(app)}}
</label>
</td>
</tr>
</table>
</li>
{% endfor %}
</ul>

View File

@@ -1862,17 +1862,22 @@ H4 {
}
.clkbas {
white-space: nowrap;
white-space: normal;
margin:0 5px;
-webkit-column-break-inside:avoid;
-moz-column-break-inside:avoid;
-o-column-break-inside:avoid;
-ms-column-break-inside:avoid;
column-break-inside:avoid;
}
.clkbas label {
#searchForm .clkbas label {
color: #AAAAAA;
overflow: hidden;
text-overflow: ellipsis;
}
.clkbas label.selected {
#searchForm .clkbas label.selected {
color: #FFFFFF;
}

View File

@@ -1923,17 +1923,22 @@ H4 {
}
.clkbas {
white-space: nowrap;
white-space: normal;
margin:0 5px;
-webkit-column-break-inside:avoid;
-moz-column-break-inside:avoid;
-o-column-break-inside:avoid;
-ms-column-break-inside:avoid;
column-break-inside:avoid;
}
.clkbas label {
#searchForm .clkbas label {
color: #999999;
overflow: hidden;
text-overflow: ellipsis;
}
.clkbas label.selected {
#searchForm .clkbas label.selected {
color: #555555;
}