Run pre-commit on legacy code
This commit is contained in:
parent
fea11ac752
commit
83b7e4162e
323 changed files with 6126 additions and 6462 deletions
|
@ -44,9 +44,9 @@
|
|||
constructor: DateTimePicker,
|
||||
|
||||
init: function(element, options) {
|
||||
|
||||
|
||||
dates = $.fn.datetimepicker.dates;
|
||||
|
||||
|
||||
var icon;
|
||||
if (!(options.pickTime || options.pickDate))
|
||||
throw new Error('Must choose at least one picker');
|
||||
|
@ -271,16 +271,16 @@
|
|||
offset.top = offset.top + this.height;
|
||||
|
||||
var $window = $(window);
|
||||
|
||||
|
||||
if ( this.options.width != undefined ) {
|
||||
this.widget.width( this.options.width );
|
||||
}
|
||||
|
||||
|
||||
if ( this.options.orientation == 'left' ) {
|
||||
this.widget.addClass( 'left-oriented' );
|
||||
offset.left = offset.left - this.widget.width() + 20;
|
||||
}
|
||||
|
||||
|
||||
if (this._isInFixed()) {
|
||||
position = 'fixed';
|
||||
offset.top -= $window.scrollTop();
|
||||
|
@ -1303,4 +1303,4 @@
|
|||
}
|
||||
|
||||
|
||||
})(window.jQuery)
|
||||
})(window.jQuery)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue