Skip to content

Commit ba6dd5c

Browse files
committed
Merge branch 'master' of github.com:jquery/jquery-ui
2 parents 1c19308 + 4ff8d90 commit ba6dd5c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ui/jquery.ui.accordion.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,11 @@ $.extend( $.ui.accordion, {
486486
$.each( fxAttrs, function( i, prop ) {
487487
hideProps[ prop ] = "hide";
488488

489-
var parts = ( "" + $.css( options.toShow[0], prop ) ).match( /^([\d+-.]+)(.*)$/ );
489+
var parts = ( "" + $.css( options.toShow[0], prop ) ).match( /^([\d+-.]+)(.*)$/ ),
490+
// work around bug when a panel has no height - #7335
491+
propVal = prop === "height" && parts[ 1 ] === "0" ? 1 : parts[ 1 ];
490492
showProps[ prop ] = {
491-
value: parts[ 1 ],
493+
value: propVal,
492494
unit: parts[ 2 ] || "px"
493495
};
494496
});

ui/jquery.ui.button.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ var lastActive, startXPos, startYPos, clickDragged,
1717
baseClasses = "ui-button ui-widget ui-state-default ui-corner-all",
1818
stateClasses = "ui-state-hover ui-state-active ",
1919
typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",
20-
formResetHandler = function( event ) {
21-
$( ":ui-button", event.target.form ).each(function() {
22-
var inst = $( this ).data( "button" );
23-
setTimeout(function() {
24-
inst.refresh();
25-
}, 1 );
26-
});
20+
formResetHandler = function() {
21+
var buttons = $( this ).find( ":ui-button" );
22+
setTimeout(function() {
23+
buttons.button( "refresh" );
24+
}, 1 );
2725
},
2826
radioGroup = function( radio ) {
2927
var name = radio.name,

0 commit comments

Comments
 (0)