aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-08-27 18:02:11 -0400
committerScott González <scott.gonzalez@gmail.com>2010-08-27 18:02:11 -0400
commit79ee6f0d7b94b71d89f30019e66a1746696d5608 (patch)
treef8d7cdf363a80371ab0463e5b78f6d1c7ae89401 /ui/jquery.ui.dialog.js
parentaf9864dcc439bf8d04f4ade248725cc217f66d56 (diff)
downloadjquery-ui-79ee6f0d7b94b71d89f30019e66a1746696d5608.tar.gz
jquery-ui-79ee6f0d7b94b71d89f30019e66a1746696d5608.zip
Dialog: When using the title attribute, update the title option. Fixes #5877 - Dialog: when using the title attribute, the title option should be updated.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index 1f3bd60f0..ff2375164 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -67,10 +67,11 @@ $.widget("ui.dialog", {
this.originalTitle = "";
}
+ this.options.title = this.options.title || this.originalTitle;
var self = this,
options = self.options,
- title = options.title || self.originalTitle || '&#160;',
+ title = options.title || '&#160;',
titleId = $.ui.dialog.getTitleId(self.element),
uiDialog = (self.uiDialog = $('<div></div>'))