aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.dialog.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-12-14 06:11:37 +0000
committerRichard Worth <rdworth@gmail.com>2008-12-14 06:11:37 +0000
commitff64790b183a72cfebf2ecd0d91a3ac53160a57c (patch)
tree4d0bd97053d1a8c5af017fe317a40b8198bc3fe1 /ui/ui.dialog.js
parenteeccae3671adfde9b6a6d1ed0f015cce723cafd0 (diff)
downloadjquery-ui-ff64790b183a72cfebf2ecd0d91a3ac53160a57c.tar.gz
jquery-ui-ff64790b183a72cfebf2ecd0d91a3ac53160a57c.zip
Fixed #3655 - $.keyCode should be $.ui.keyCode
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r--ui/ui.dialog.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 96414e7eb..37e55927c 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -124,7 +124,7 @@ $.widget("ui.dialog", {
// setting outline to 0 prevents a border on focus in Mozilla
.attr('tabIndex', -1).css('outline', 0).keydown(function(ev) {
(options.closeOnEscape && ev.keyCode
- && ev.keyCode == $.keyCode.ESCAPE && self.close());
+ && ev.keyCode == $.ui.keyCode.ESCAPE && self.close());
})
.attr({
role: 'dialog',
@@ -226,7 +226,7 @@ $.widget("ui.dialog", {
// prevent tabbing out of modal dialogs
(this.options.modal && this.uiDialog.bind('keypress.ui-dialog', function(event) {
- if (event.keyCode != $.keyCode.TAB) {
+ if (event.keyCode != $.ui.keyCode.TAB) {
return;
}
@@ -508,7 +508,7 @@ $.extend($.ui.dialog.overlay, {
// allow closing by pressing the escape key
$(document).bind('keydown.dialog-overlay', function(event) {
(dialog.options.closeOnEscape && event.keyCode
- && event.keyCode == $.keyCode.ESCAPE && dialog.close());
+ && event.keyCode == $.ui.keyCode.ESCAPE && dialog.close());
});
// handle window resize