mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Popup: Use duration:fast for default animations. Also fix two missing semicolons.
This commit is contained in:
parent
2196b74a31
commit
a3866bf057
16
ui/jquery.ui.popup.js
vendored
16
ui/jquery.ui.popup.js
vendored
@ -23,8 +23,14 @@ $.widget( "ui.popup", {
|
|||||||
my: "left top",
|
my: "left top",
|
||||||
at: "left bottom"
|
at: "left bottom"
|
||||||
},
|
},
|
||||||
show: "slideDown",
|
show: {
|
||||||
hide: "fadeOut"
|
effect: "slideDown",
|
||||||
|
duration: "fast"
|
||||||
|
},
|
||||||
|
hide: {
|
||||||
|
effect: "fadeOut",
|
||||||
|
duration: "fast"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
_create: function() {
|
_create: function() {
|
||||||
if ( !this.options.trigger ) {
|
if ( !this.options.trigger ) {
|
||||||
@ -47,7 +53,7 @@ $.widget( "ui.popup", {
|
|||||||
.attr( "aria-owns", this.element.attr( "id" ) );
|
.attr( "aria-owns", this.element.attr( "id" ) );
|
||||||
|
|
||||||
this.element
|
this.element
|
||||||
.addClass( "ui-popup" )
|
.addClass( "ui-popup" );
|
||||||
this._beforeClose();
|
this._beforeClose();
|
||||||
this.element.hide();
|
this.element.hide();
|
||||||
|
|
||||||
@ -134,7 +140,7 @@ $.widget( "ui.popup", {
|
|||||||
this.close( event );
|
this.close( event );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_destroy: function() {
|
_destroy: function() {
|
||||||
@ -203,7 +209,7 @@ $.widget( "ui.popup", {
|
|||||||
this.isOpen = false;
|
this.isOpen = false;
|
||||||
this._trigger( "close", event );
|
this._trigger( "close", event );
|
||||||
},
|
},
|
||||||
|
|
||||||
_beforeClose: function() {
|
_beforeClose: function() {
|
||||||
this.element
|
this.element
|
||||||
.attr( "aria-hidden", "true" )
|
.attr( "aria-hidden", "true" )
|
||||||
|
Loading…
Reference in New Issue
Block a user