Commit bddd8eb2 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Stop hidden collection nav showing in IE (bug #620215)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 4e25abe3
......@@ -236,7 +236,3 @@ ul.colnav li.selected a {
background: #fff;
text-decoration: none;
}
ul.colnav-extra {
display: block;
text-align: right;
}
{foreach from=$collection item=chunk name=cchunk}
<ul class="colnav{if !$dwoo.foreach.cchunk.first} colnav-extra js-hidden{/if}">
<div class="{if $dwoo.foreach.cchunk.first}colnav1{else}colnav-extra hidden{/if}">
<ul class="colnav">
{foreach from=$chunk item=view}
<li{if $view->view == $viewid} class="selected"{/if}><a href="{$WWWROOT}view/view.php?id={$view->view}">{$view->title|str_shorten_text:30:true}</a></li>
{/foreach}
......@@ -7,6 +8,7 @@
<li id="colnav-more" class="nojs-hidden"><a href=""></a></li>
{/if}
</ul>
</div>
{/foreach}
{if $dwoo.foreach.cchunk.index > 1}
......@@ -14,7 +16,7 @@
addLoadEvent(function() {
connect('colnav-more', 'onclick', function(e) {
e.stop();
forEach (getElementsByTagAndClassName('ul', 'colnav-extra', null), partial(toggleElementClass, 'js-hidden'));
forEach (getElementsByTagAndClassName('div', 'colnav-extra', null), partial(toggleElementClass, 'hidden'));
});
});{/literal}
</script>
......
......@@ -540,7 +540,6 @@ ul.colnav {
list-style: none;
padding: 0;
margin: 1em 0 0 0;
display: inline;
}
ul.colnav li {
display: inline;
......@@ -548,6 +547,12 @@ ul.colnav li {
margin: 0 0.15em;
display: inline;
}
div.colnav1 {
display: inline;
}
div.colnav-extra {
margin: 0.75em 0 0;
}
/* VIEWS */
/* views footer */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment