Permalink
Browse files

Dialog: Capitalize default value for closeText option. Fixes #9500 - …

…Dialog: Capitalize 'close' for closeText option.
  • Loading branch information...
scottgonzalez committed Aug 15, 2013
1 parent 263d078 commit e628d0e4ba89eecee2c9b0d4cfb214523cad2ab4
Showing with 3 additions and 3 deletions.
  1. +1 −1 tests/unit/dialog/dialog_common.js
  2. +1 −1 tests/unit/dialog/dialog_options.js
  3. +1 −1 ui/jquery.ui.dialog.js
@@ -4,7 +4,7 @@ TestHelpers.commonWidgetTests( "dialog", {
autoOpen: true,
buttons: [],
closeOnEscape: true,
closeText: "close",
closeText: "Close",
disabled: false,
dialogClass: "",
draggable: true,
@@ -209,7 +209,7 @@ test("closeText", function() {
expect(3);
var element = $("<div></div>").dialog();
equal(element.dialog("widget").find(".ui-dialog-titlebar-close span").text(), "close",
equal(element.dialog("widget").find(".ui-dialog-titlebar-close span").text(), "Close",
"default close text");
element.remove();
View
@@ -42,7 +42,7 @@ $.widget( "ui.dialog", {
autoOpen: true,
buttons: [],
closeOnEscape: true,
closeText: "close",
closeText: "Close",
dialogClass: "",
draggable: true,
hide: null,

0 comments on commit e628d0e

Please sign in to comment.