aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-12-11 02:25:51 +0000
committerScott González <scott.gonzalez@gmail.com>2008-12-11 02:25:51 +0000
commit9eda8e4cb9ed2498a8e894474d806d1fe50a8895 (patch)
treea6cf898c77050900ad4b94a549767cd29cf47829 /ui
parent06ed0691cf1551bac05566da627f4381330183b4 (diff)
downloadjquery-ui-9eda8e4cb9ed2498a8e894474d806d1fe50a8895.tar.gz
jquery-ui-9eda8e4cb9ed2498a8e894474d806d1fe50a8895.zip
Dialog: Fixed #3638: Added closeText option (default 'close').
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.dialog.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index ae8f8da5b..2e6b8af3c 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -63,7 +63,7 @@ $.widget("ui.dialog", {
.appendTo(uiDialogTitlebar),
uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('<span/>'))
- .html('X')
+ .text(options.closeText)
.appendTo(uiDialogTitlebarClose),
title = options.title || '&nbsp;',
@@ -359,6 +359,9 @@ $.widget("ui.dialog", {
case "buttons":
this._createButtons(value);
break;
+ case "closeText":
+ this.uiDialogTitlebarCloseText.text(value);
+ break;
case "draggable":
(value
? this._makeDraggable()
@@ -418,6 +421,7 @@ $.extend($.ui.dialog, {
bgiframe: false,
buttons: {},
closeOnEscape: true,
+ closeText: 'close',
draggable: true,
height: 200,
minHeight: 100,