mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
dialog: formatting changes
This commit is contained in:
parent
89a113ba19
commit
8ab19f209a
@ -28,6 +28,7 @@ var setDataSwitch = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
$.widget("ui.dialog", {
|
$.widget("ui.dialog", {
|
||||||
|
|
||||||
_init: function() {
|
_init: function() {
|
||||||
this.originalTitle = this.element.attr('title');
|
this.originalTitle = this.element.attr('title');
|
||||||
this.options.title = this.options.title || this.originalTitle;
|
this.options.title = this.options.title || this.originalTitle;
|
||||||
@ -398,6 +399,7 @@ $.widget("ui.dialog", {
|
|||||||
content.height(container.height() - titlebar.outerHeight() - tbMargin);
|
content.height(container.height() - titlebar.outerHeight() - tbMargin);
|
||||||
content.width(container.width() - lrMargin);
|
content.width(container.width() - lrMargin);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$.extend($.ui.dialog, {
|
$.extend($.ui.dialog, {
|
||||||
@ -424,6 +426,7 @@ $.extend($.ui.dialog, {
|
|||||||
getter: 'isOpen',
|
getter: 'isOpen',
|
||||||
|
|
||||||
uuid: 0,
|
uuid: 0,
|
||||||
|
|
||||||
getTitleId: function($el) {
|
getTitleId: function($el) {
|
||||||
return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid);
|
return 'ui-dialog-title-' + ($el.attr('id') || ++this.uuid);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user