Skip to content

Commit 9d6e94f

Browse files
treyhunnerscottgonzalez
authored andcommitted
Use hard tabs for indentation consistently
1 parent 1d2fcad commit 9d6e94f

13 files changed

+112
-112
lines changed

ui/i18n/jquery.ui.datepicker-bg.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
/* Bulgarian initialisation for the jQuery UI date picker plugin. */
22
/* Written by Stoyan Kyosev (http://svest.org). */
33
jQuery(function($){
4-
$.datepicker.regional['bg'] = {
5-
closeText: 'затвори',
6-
prevText: '<назад',
7-
nextText: 'напред>',
4+
$.datepicker.regional['bg'] = {
5+
closeText: 'затвори',
6+
prevText: '<назад',
7+
nextText: 'напред>',
88
nextBigText: '>>',
9-
currentText: 'днес',
10-
monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
11-
'Юли','Август','Септември','Октомври','Ноември','Декември'],
12-
monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
13-
'Юли','Авг','Сеп','Окт','Нов','Дек'],
14-
dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
15-
dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
16-
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
9+
currentText: 'днес',
10+
monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
11+
'Юли','Август','Септември','Октомври','Ноември','Декември'],
12+
monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
13+
'Юли','Авг','Сеп','Окт','Нов','Дек'],
14+
dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
15+
dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
16+
dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
1717
weekHeader: 'Wk',
18-
dateFormat: 'dd.mm.yy',
18+
dateFormat: 'dd.mm.yy',
1919
firstDay: 1,
20-
isRTL: false,
20+
isRTL: false,
2121
showMonthAfterYear: false,
2222
yearSuffix: ''};
23-
$.datepicker.setDefaults($.datepicker.regional['bg']);
23+
$.datepicker.setDefaults($.datepicker.regional['bg']);
2424
});

ui/i18n/jquery.ui.datepicker-cs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jQuery(function($){
77
nextText: 'Později>',
88
currentText: 'Nyní',
99
monthNames: ['leden','únor','březen','duben','květen','červen',
10-
'červenec','srpen','září','říjen','listopad','prosinec'],
10+
'červenec','srpen','září','říjen','listopad','prosinec'],
1111
monthNamesShort: ['led','úno','bře','dub','kvě','čer',
1212
'čvc','srp','zář','říj','lis','pro'],
1313
dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],

ui/i18n/jquery.ui.datepicker-da.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/* Danish initialisation for the jQuery UI date picker plugin. */
22
/* Written by Jan Christensen ( deletestuff@gmail.com). */
33
jQuery(function($){
4-
$.datepicker.regional['da'] = {
4+
$.datepicker.regional['da'] = {
55
closeText: 'Luk',
6-
prevText: '<Forrige',
6+
prevText: '<Forrige',
77
nextText: 'Næste>',
88
currentText: 'Idag',
9-
monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
10-
'Juli','August','September','Oktober','November','December'],
11-
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
12-
'Jul','Aug','Sep','Okt','Nov','Dec'],
9+
monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
10+
'Juli','August','September','Oktober','November','December'],
11+
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
12+
'Jul','Aug','Sep','Okt','Nov','Dec'],
1313
dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
1414
dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
1515
dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
1616
weekHeader: 'Uge',
17-
dateFormat: 'dd-mm-yy',
17+
dateFormat: 'dd-mm-yy',
1818
firstDay: 1,
1919
isRTL: false,
2020
showMonthAfterYear: false,
2121
yearSuffix: ''};
22-
$.datepicker.setDefaults($.datepicker.regional['da']);
22+
$.datepicker.setDefaults($.datepicker.regional['da']);
2323
});

ui/i18n/jquery.ui.datepicker-fi.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/* Finnish initialisation for the jQuery UI date picker plugin. */
22
/* Written by Harri Kilpi� (harrikilpio@gmail.com). */
33
jQuery(function($){
4-
$.datepicker.regional['fi'] = {
4+
$.datepicker.regional['fi'] = {
55
closeText: 'Sulje',
66
prevText: '«Edellinen',
77
nextText: 'Seuraava»',
88
currentText: 'Tänään',
9-
monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu',
10-
'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
11-
monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä',
12-
'Heinä','Elo','Syys','Loka','Marras','Joulu'],
9+
monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu',
10+
'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'],
11+
monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä',
12+
'Heinä','Elo','Syys','Loka','Marras','Joulu'],
1313
dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'],
1414
dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'],
1515
dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'],
1616
weekHeader: 'Vk',
17-
dateFormat: 'dd.mm.yy',
17+
dateFormat: 'dd.mm.yy',
1818
firstDay: 1,
1919
isRTL: false,
2020
showMonthAfterYear: false,
2121
yearSuffix: ''};
22-
$.datepicker.setDefaults($.datepicker.regional['fi']);
22+
$.datepicker.setDefaults($.datepicker.regional['fi']);
2323
});

ui/i18n/jquery.ui.datepicker-fr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* French initialisation for the jQuery UI date picker plugin. */
22
/* Written by Keith Wood (kbwood{at}iinet.com.au),
3-
Stéphane Nahmani (sholby@sholby.net),
4-
Stéphane Raimbault <stephane.raimbault@gmail.com> */
3+
Stéphane Nahmani (sholby@sholby.net),
4+
Stéphane Raimbault <stephane.raimbault@gmail.com> */
55
jQuery(function($){
66
$.datepicker.regional['fr'] = {
77
closeText: 'Fermer',

ui/i18n/jquery.ui.datepicker-no.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
/* Written by Naimdjon Takhirov (naimdjon@gmail.com). */
33

44
jQuery(function($){
5-
$.datepicker.regional['no'] = {
6-
closeText: 'Lukk',
7-
prevText: '&#xAB;Forrige',
8-
nextText: 'Neste&#xBB;',
9-
currentText: 'I dag',
10-
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
11-
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
12-
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
13-
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
14-
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
15-
weekHeader: 'Uke',
16-
dateFormat: 'dd.mm.yy',
17-
firstDay: 1,
18-
isRTL: false,
19-
showMonthAfterYear: false,
20-
yearSuffix: ''
21-
};
22-
$.datepicker.setDefaults($.datepicker.regional['no']);
5+
$.datepicker.regional['no'] = {
6+
closeText: 'Lukk',
7+
prevText: '&#xAB;Forrige',
8+
nextText: 'Neste&#xBB;',
9+
currentText: 'I dag',
10+
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
11+
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
12+
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
13+
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
14+
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
15+
weekHeader: 'Uke',
16+
dateFormat: 'dd.mm.yy',
17+
firstDay: 1,
18+
isRTL: false,
19+
showMonthAfterYear: false,
20+
yearSuffix: ''
21+
};
22+
$.datepicker.setDefaults($.datepicker.regional['no']);
2323
});

ui/i18n/jquery.ui.datepicker-sv.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
/* Swedish initialisation for the jQuery UI date picker plugin. */
22
/* Written by Anders Ekdahl ( anders@nomadiz.se). */
33
jQuery(function($){
4-
$.datepicker.regional['sv'] = {
4+
$.datepicker.regional['sv'] = {
55
closeText: 'Stäng',
6-
prevText: '&#xAB;Förra',
6+
prevText: '&#xAB;Förra',
77
nextText: 'Nästa&#xBB;',
88
currentText: 'Idag',
9-
monthNames: ['Januari','Februari','Mars','April','Maj','Juni',
10-
'Juli','Augusti','September','Oktober','November','December'],
11-
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
12-
'Jul','Aug','Sep','Okt','Nov','Dec'],
9+
monthNames: ['Januari','Februari','Mars','April','Maj','Juni',
10+
'Juli','Augusti','September','Oktober','November','December'],
11+
monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
12+
'Jul','Aug','Sep','Okt','Nov','Dec'],
1313
dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'],
1414
dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'],
1515
dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'],
1616
weekHeader: 'Ve',
17-
dateFormat: 'yy-mm-dd',
17+
dateFormat: 'yy-mm-dd',
1818
firstDay: 1,
1919
isRTL: false,
2020
showMonthAfterYear: false,
2121
yearSuffix: ''};
22-
$.datepicker.setDefaults($.datepicker.regional['sv']);
22+
$.datepicker.setDefaults($.datepicker.regional['sv']);
2323
});

ui/jquery.effects.blind.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $.effects.effect.blind = function( o, done ) {
5050
.css( vertical ? "top" : "left", "auto" )
5151
.css({ position: "absolute" });
5252

53-
animation[ ref2 ] = show ? margin : distance + margin;
53+
animation[ ref2 ] = show ? margin : distance + margin;
5454
}
5555

5656
// start at 0 if we are showing

ui/jquery.ui.datepicker.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ $.extend(Datepicker.prototype, {
628628
},
629629

630630
/* Pop-up the date picker for a given input field.
631-
If false returned from beforeShow event handler do not show.
631+
If false returned from beforeShow event handler do not show.
632632
@param input element - the input field attached to the date picker or
633633
event - if triggered by focus */
634634
_showDatepicker: function(input) {
@@ -647,7 +647,7 @@ $.extend(Datepicker.prototype, {
647647
var beforeShow = $.datepicker._get(inst, 'beforeShow');
648648
var beforeShowSettings = beforeShow ? beforeShow.apply(input, [input, inst]) : {};
649649
if(beforeShowSettings === false){
650-
//false
650+
//false
651651
return;
652652
}
653653
extendRemove(inst.settings, beforeShowSettings);
@@ -785,11 +785,11 @@ $.extend(Datepicker.prototype, {
785785
_findPos: function(obj) {
786786
var inst = this._getInst(obj);
787787
var isRTL = this._get(inst, 'isRTL');
788-
while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {
789-
obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];
790-
}
791-
var position = $(obj).offset();
792-
return [position.left, position.top];
788+
while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {
789+
obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];
790+
}
791+
var position = $(obj).offset();
792+
return [position.left, position.top];
793793
},
794794

795795
/* Hide the date picker from view.
@@ -1784,7 +1784,7 @@ function isArray(a) {
17841784

17851785
/* Invoke the datepicker functionality.
17861786
@param options string - a command, optionally followed by additional parameters or
1787-
Object - settings for attaching new datepicker functionality
1787+
Object - settings for attaching new datepicker functionality
17881788
@return jQuery object */
17891789
$.fn.datepicker = function(options){
17901790

ui/jquery.ui.draggable.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ $.widget("ui.draggable", $.ui.mouse, {
370370
];
371371

372372
if(!(/^(document|window|parent)$/).test(o.containment) && o.containment.constructor != Array) {
373-
var c = $(o.containment);
373+
var c = $(o.containment);
374374
var ce = c[0]; if(!ce) return;
375375
var co = c.offset();
376376
var over = ($(ce).css("overflow") != 'hidden');
@@ -424,18 +424,18 @@ $.widget("ui.draggable", $.ui.mouse, {
424424
*/
425425

426426
if(this.originalPosition) { //If we are not dragging yet, we won't check for options
427-
var containment;
428-
if(this.containment) {
429-
if (this.relative_container){
430-
var co = this.relative_container.offset();
431-
containment = [ this.containment[0] + co.left,
432-
this.containment[1] + co.top,
433-
this.containment[2] + co.left,
434-
this.containment[3] + co.top ];
435-
}
436-
else {
437-
containment = this.containment;
438-
}
427+
var containment;
428+
if(this.containment) {
429+
if (this.relative_container){
430+
var co = this.relative_container.offset();
431+
containment = [ this.containment[0] + co.left,
432+
this.containment[1] + co.top,
433+
this.containment[2] + co.left,
434+
this.containment[3] + co.top ];
435+
}
436+
else {
437+
containment = this.containment;
438+
}
439439

440440
if(event.pageX - this.offset.click.left < containment[0]) pageX = containment[0] + this.offset.click.left;
441441
if(event.pageY - this.offset.click.top < containment[1]) pageY = containment[1] + this.offset.click.top;

ui/jquery.ui.mouse.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ $.widget("ui.mouse", {
3333
})
3434
.bind('click.'+this.widgetName, function(event) {
3535
if (true === $.data(event.target, that.widgetName + '.preventClickEvent')) {
36-
$.removeData(event.target, that.widgetName + '.preventClickEvent');
36+
$.removeData(event.target, that.widgetName + '.preventClickEvent');
3737
event.stopImmediatePropagation();
3838
return false;
3939
}
@@ -132,7 +132,7 @@ $.widget("ui.mouse", {
132132
this._mouseStarted = false;
133133

134134
if (event.target == this._mouseDownEvent.target) {
135-
$.data(event.target, this.widgetName + '.preventClickEvent', true);
135+
$.data(event.target, this.widgetName + '.preventClickEvent', true);
136136
}
137137

138138
this._mouseStop(event);

ui/jquery.ui.resizable.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ $.widget("ui.resizable", $.ui.mouse, {
265265
//Aspect Ratio
266266
this.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.width / this.originalSize.height) || 1);
267267

268-
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
269-
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
268+
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
269+
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
270270

271271
el.addClass("ui-resizable-resizing");
272272
this._propagate("start", event);
@@ -346,31 +346,31 @@ $.widget("ui.resizable", $.ui.mouse, {
346346

347347
},
348348

349-
_updateVirtualBoundaries: function(forceAspectRatio) {
350-
var o = this.options, pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b;
351-
352-
b = {
353-
minWidth: isNumber(o.minWidth) ? o.minWidth : 0,
354-
maxWidth: isNumber(o.maxWidth) ? o.maxWidth : Infinity,
355-
minHeight: isNumber(o.minHeight) ? o.minHeight : 0,
356-
maxHeight: isNumber(o.maxHeight) ? o.maxHeight : Infinity
357-
};
358-
359-
if(this._aspectRatio || forceAspectRatio) {
360-
// We want to create an enclosing box whose aspect ration is the requested one
361-
// First, compute the "projected" size for each dimension based on the aspect ratio and other dimension
362-
pMinWidth = b.minHeight * this.aspectRatio;
363-
pMinHeight = b.minWidth / this.aspectRatio;
364-
pMaxWidth = b.maxHeight * this.aspectRatio;
365-
pMaxHeight = b.maxWidth / this.aspectRatio;
366-
367-
if(pMinWidth > b.minWidth) b.minWidth = pMinWidth;
368-
if(pMinHeight > b.minHeight) b.minHeight = pMinHeight;
369-
if(pMaxWidth < b.maxWidth) b.maxWidth = pMaxWidth;
370-
if(pMaxHeight < b.maxHeight) b.maxHeight = pMaxHeight;
371-
}
372-
this._vBoundaries = b;
373-
},
349+
_updateVirtualBoundaries: function(forceAspectRatio) {
350+
var o = this.options, pMinWidth, pMaxWidth, pMinHeight, pMaxHeight, b;
351+
352+
b = {
353+
minWidth: isNumber(o.minWidth) ? o.minWidth : 0,
354+
maxWidth: isNumber(o.maxWidth) ? o.maxWidth : Infinity,
355+
minHeight: isNumber(o.minHeight) ? o.minHeight : 0,
356+
maxHeight: isNumber(o.maxHeight) ? o.maxHeight : Infinity
357+
};
358+
359+
if(this._aspectRatio || forceAspectRatio) {
360+
// We want to create an enclosing box whose aspect ration is the requested one
361+
// First, compute the "projected" size for each dimension based on the aspect ratio and other dimension
362+
pMinWidth = b.minHeight * this.aspectRatio;
363+
pMinHeight = b.minWidth / this.aspectRatio;
364+
pMaxWidth = b.maxHeight * this.aspectRatio;
365+
pMaxHeight = b.maxWidth / this.aspectRatio;
366+
367+
if(pMinWidth > b.minWidth) b.minWidth = pMinWidth;
368+
if(pMinHeight > b.minHeight) b.minHeight = pMinHeight;
369+
if(pMaxWidth < b.maxWidth) b.maxWidth = pMaxWidth;
370+
if(pMaxHeight < b.maxHeight) b.maxHeight = pMaxHeight;
371+
}
372+
this._vBoundaries = b;
373+
},
374374

375375
_updateCache: function(data) {
376376
var o = this.options;
@@ -705,7 +705,7 @@ $.ui.plugin.add("resizable", "containment", {
705705
hoset = Math.abs( (self._helper ? self.offset.top - cop.top : (self.offset.top - co.top)) + self.sizeDiff.height );
706706

707707
var isParent = self.containerElement.get(0) == self.element.parent().get(0),
708-
isOffsetRelative = /relative|absolute/.test(self.containerElement.css('position'));
708+
isOffsetRelative = /relative|absolute/.test(self.containerElement.css('position'));
709709

710710
if(isParent && isOffsetRelative) woset -= self.parentData.left;
711711

ui/jquery.ui.tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ $.widget( "ui.tabs", {
430430
typeof selector === "string" ? this.anchors.filter( "[href$='" + selector + "']" ) : $();
431431
},
432432

433-
_getIndex: function( index ) {
433+
_getIndex: function( index ) {
434434
// meta-function to give users option to provide a href string instead of a numerical index.
435435
// also sanitizes numerical indexes to valid values.
436436
if ( typeof index == "string" ) {

0 commit comments

Comments
 (0)