Skip to content

Commit 4ad7154

Browse files
committed
Dialog: Fixed whitespace.
1 parent 2366a81 commit 4ad7154

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

ui/jquery.ui.dialog.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ $.widget("ui.dialog", {
5959
width: 300,
6060
zIndex: 1000
6161
},
62+
6263
_create: function() {
6364
this.originalTitle = this.element.attr('title');
6465
// #5742 - .attr() might return a DOMElement
@@ -177,6 +178,7 @@ $.widget("ui.dialog", {
177178
uiDialog.bgiframe();
178179
}
179180
},
181+
180182
_init: function() {
181183
if ( this.options.autoOpen ) {
182184
this.open();
@@ -203,7 +205,7 @@ $.widget("ui.dialog", {
203205

204206
return self;
205207
},
206-
208+
207209
widget: function() {
208210
return this.uiDialog;
209211
},
@@ -258,12 +260,12 @@ $.widget("ui.dialog", {
258260
var self = this,
259261
options = self.options,
260262
saveScroll;
261-
263+
262264
if ((options.modal && !force) ||
263265
(!options.stack && !options.modal)) {
264266
return self._trigger('focus', event);
265267
}
266-
268+
267269
if (options.zIndex > $.ui.dialog.maxZ) {
268270
$.ui.dialog.maxZ = options.zIndex;
269271
}
@@ -305,11 +307,11 @@ $.widget("ui.dialog", {
305307
if (event.keyCode !== $.ui.keyCode.TAB) {
306308
return;
307309
}
308-
310+
309311
var tabbables = $(':tabbable', this),
310312
first = tabbables.filter(':first'),
311313
last = tabbables.filter(':last');
312-
314+
313315
if (event.target === last[0] && !event.shiftKey) {
314316
first.focus(1);
315317
return false;
@@ -461,7 +463,6 @@ $.widget("ui.dialog", {
461463
}
462464
},
463465

464-
465466
_position: function(position) {
466467
var myAt = [],
467468
offset = [0, 0],
@@ -484,14 +485,14 @@ $.widget("ui.dialog", {
484485
myAt[i] = offsetPosition;
485486
}
486487
});
487-
488+
488489
position = {
489490
my: myAt.join(" "),
490491
at: myAt.join(" "),
491492
offset: offset.join(" ")
492493
};
493494
}
494-
495+
495496
position = $.extend({}, $.ui.dialog.prototype.options.position, position);
496497
} else {
497498
position = $.ui.dialog.prototype.options.position;
@@ -516,7 +517,7 @@ $.widget("ui.dialog", {
516517
uiDialog = self.uiDialog,
517518
isResizable = uiDialog.is(':data(resizable)'),
518519
resize = false;
519-
520+
520521
switch (key) {
521522
//handling of deprecated beforeclose (vs beforeClose) option
522523
//Ticket #4669 http://dev.jqueryui.com/ticket/4669

0 commit comments

Comments
 (0)