From 9eda8e4cb9ed2498a8e894474d806d1fe50a8895 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 11 Dec 2008 02:25:51 +0000 Subject: Dialog: Fixed #3638: Added closeText option (default 'close'). --- ui/ui.dialog.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ui') 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 = $('')) - .html('X') + .text(options.closeText) .appendTo(uiDialogTitlebarClose), title = options.title || ' ', @@ -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, -- cgit v1.2.3