aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.dialog.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-14 03:00:16 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-14 03:00:16 +0000
commit7ea535fa1df43e8259ab9987a0e8e08866cfb1f5 (patch)
treede1237434696e0f094e2cfb35d7fd5880b8a72bb /ui/ui.dialog.js
parented4f58c6d3c914baafaf07ab1d168e6c199b8693 (diff)
downloadjquery-ui-7ea535fa1df43e8259ab9987a0e8e08866cfb1f5.tar.gz
jquery-ui-7ea535fa1df43e8259ab9987a0e8e08866cfb1f5.zip
fixed #3578 - ALL CODE: e, ui should be changed to event, ui
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r--ui/ui.dialog.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js
index 354c696f7..81d2730c5 100644
--- a/ui/ui.dialog.js
+++ b/ui/ui.dialog.js
@@ -195,8 +195,8 @@ $.widget("ui.dialog", {
this.moveToTop(true);
// prevent tabbing out of modal dialogs
- (this.options.modal && this.uiDialog.bind('keypress.ui-dialog', function(e) {
- if (e.keyCode != $.keyCode.TAB) {
+ (this.options.modal && this.uiDialog.bind('keypress.ui-dialog', function(event) {
+ if (event.keyCode != $.keyCode.TAB) {
return;
}
@@ -204,11 +204,11 @@ $.widget("ui.dialog", {
first = tabbables.filter(':first')[0],
last = tabbables.filter(':last')[0];
- if (e.target == last && !e.shiftKey) {
+ if (event.target == last && !event.shiftKey) {
setTimeout(function() {
first.focus();
}, 1);
- } else if (e.target == first && e.shiftKey) {
+ } else if (event.target == first && event.shiftKey) {
setTimeout(function() {
last.focus();
}, 1);
@@ -436,7 +436,7 @@ $.extend($.ui.dialog, {
$.extend($.ui.dialog.overlay, {
instances: [],
events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
- function(e) { return e + '.dialog-overlay'; }).join(' '),
+ function(event) { return event + '.dialog-overlay'; }).join(' '),
create: function(dialog) {
if (this.instances.length === 0) {
// prevent use of anchors and inputs
@@ -466,9 +466,9 @@ $.extend($.ui.dialog.overlay, {
}, 1);
// allow closing by pressing the escape key
- $(document).bind('keydown.dialog-overlay', function(e) {
- (dialog.options.closeOnEscape && e.keyCode
- && e.keyCode == $.keyCode.ESCAPE && dialog.close());
+ $(document).bind('keydown.dialog-overlay', function(event) {
+ (dialog.options.closeOnEscape && event.keyCode
+ && event.keyCode == $.keyCode.ESCAPE && dialog.close());
});
// handle window resize