Skip to content

Commit c69da52

Browse files
committed
Fixed collapse internal divs in accordion
1 parent 613f079 commit c69da52

9 files changed

Lines changed: 22 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.15.8.9
4+
5+
Fixed collapse internal div's in accordion
6+
37
## 0.15.8.8
48

59
Disable IE10 native clear and reveal buttons in input[text, password]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ x.x.x.x
1515

1616
# Current Version
1717

18-
## 0.15.8.8
18+
## 0.15.8.9
1919

2020
See details of definition on [metroui.org.ua](http://metroui.org.ua)
2121

javascript/accordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
var $this = $(this)
77
, $li = $this.children("li")
88
, $triggers = $li.children("a")
9-
, $frames = $this.find("li div")
9+
, $frames = $li.children("div")
1010
;
1111

1212
var initTriggers = function(triggers){
1313
triggers.on('click', function(e){
1414
e.preventDefault();
1515
var $a = $(this)
16-
, target = $($a.parent('li').children("div"));
16+
, target = $a.parent('li').children("div");
1717

1818
if ( $a.parent('li').hasClass('active') ) {
1919
target.slideUp();

less/forms.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,6 @@
345345
font-size: 12pt;
346346
position: absolute;
347347
#font > .normal;
348-
display: inline-block;
349348
}
350349

351350

@@ -356,7 +355,6 @@
356355
&:active {
357356
background-color: #000;
358357

359-
360358
&:before {
361359
color: #fff;
362360
}

public/accordion.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,19 @@
1818
<div>
1919
<h3>frame 1</h3>
2020
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur porta condimentum sem sed commodo.
21+
<p>
22+
subcontent 1
23+
</p>
2124
</div>
2225
</li>
2326
<li class="active">
2427
<a href="#">frame 2</a>
2528
<div>
2629
<h3>frame 2</h3>
2730
Curabitur porta condimentum sem sed commodo. Praesent vestibulum, libero eget lacinia pretium, metus augue dapibus odio, nec placerat mauris justo non ante.
31+
<div>
32+
subcontent 2
33+
</div>
2834
</div>
2935
</li>
3036
<li>

public/css/modern.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5169,6 +5169,8 @@ table.bordered tbody tr:last-child td {
51695169
letter-spacing: 0.02em;
51705170
line-height: 20px;
51715171
display: inline-block;
5172+
height: 100%;
5173+
width: 100%;
51725174
}
51735175
.input-control.text .helper:hover,
51745176
.input-control.password .helper:hover {

public/js/modern/accordion.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
var $this = $(this)
77
, $li = $this.children("li")
88
, $triggers = $li.children("a")
9-
, $frames = $this.find("li div")
9+
, $frames = $li.children("div")
1010
;
1111

1212
var initTriggers = function(triggers){
1313
triggers.on('click', function(e){
1414
e.preventDefault();
1515
var $a = $(this)
16-
, target = $($a.parent('li').children("div"));
16+
, target = $a.parent('li').children("div");
1717

1818
if ( $a.parent('li').hasClass('active') ) {
1919
target.slideUp();

public/version.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
return "0.15.8.8";
3+
return "0.15.8.9";

public/windows8start.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ function Resize(){
4545
function AddMouseWheel(){
4646
$("body").mousewheel(function(event, delta){
4747
var scroll_value = delta * 50;
48-
if (!jQuery.browser.chrome) {
49-
document.documentElement.scrollLeft -= scroll_value;
50-
} else {
48+
if (jQuery.browser.webkit) {
5149
this.scrollLeft -= scroll_value;
50+
51+
} else {
52+
document.documentElement.scrollLeft -= scroll_value;
5253
}
5354
return false;
5455
});

0 commit comments

Comments
 (0)