aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.dialog.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-16 08:54:50 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-16 08:55:03 -0400
commit4ad7154beeaf4d299c4d879c88cbc235b65dceef (patch)
treeed101875455b95ccea2c761f43fd67ae04dd0e23 /ui/jquery.ui.dialog.js
parent2366a81740cab689161d4072ee2f5bf1cd9fcf65 (diff)
downloadjquery-ui-4ad7154beeaf4d299c4d879c88cbc235b65dceef.tar.gz
jquery-ui-4ad7154beeaf4d299c4d879c88cbc235b65dceef.zip
Dialog: Fixed whitespace.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r--ui/jquery.ui.dialog.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js
index dc2559e9d..df896e7ea 100644
--- a/ui/jquery.ui.dialog.js
+++ b/ui/jquery.ui.dialog.js
@@ -59,6 +59,7 @@ $.widget("ui.dialog", {
width: 300,
zIndex: 1000
},
+
_create: function() {
this.originalTitle = this.element.attr('title');
// #5742 - .attr() might return a DOMElement
@@ -177,6 +178,7 @@ $.widget("ui.dialog", {
uiDialog.bgiframe();
}
},
+
_init: function() {
if ( this.options.autoOpen ) {
this.open();
@@ -203,7 +205,7 @@ $.widget("ui.dialog", {
return self;
},
-
+
widget: function() {
return this.uiDialog;
},
@@ -258,12 +260,12 @@ $.widget("ui.dialog", {
var self = this,
options = self.options,
saveScroll;
-
+
if ((options.modal && !force) ||
(!options.stack && !options.modal)) {
return self._trigger('focus', event);
}
-
+
if (options.zIndex > $.ui.dialog.maxZ) {
$.ui.dialog.maxZ = options.zIndex;
}
@@ -305,11 +307,11 @@ $.widget("ui.dialog", {
if (event.keyCode !== $.ui.keyCode.TAB) {
return;
}
-
+
var tabbables = $(':tabbable', this),
first = tabbables.filter(':first'),
last = tabbables.filter(':last');
-
+
if (event.target === last[0] && !event.shiftKey) {
first.focus(1);
return false;
@@ -461,7 +463,6 @@ $.widget("ui.dialog", {
}
},
-
_position: function(position) {
var myAt = [],
offset = [0, 0],
@@ -484,14 +485,14 @@ $.widget("ui.dialog", {
myAt[i] = offsetPosition;
}
});
-
+
position = {
my: myAt.join(" "),
at: myAt.join(" "),
offset: offset.join(" ")
};
}
-
+
position = $.extend({}, $.ui.dialog.prototype.options.position, position);
} else {
position = $.ui.dialog.prototype.options.position;
@@ -516,7 +517,7 @@ $.widget("ui.dialog", {
uiDialog = self.uiDialog,
isResizable = uiDialog.is(':data(resizable)'),
resize = false;
-
+
switch (key) {
//handling of deprecated beforeclose (vs beforeClose) option
//Ticket #4669 http://dev.jqueryui.com/ticket/4669