Showing 5 of 11 total issues
File bootstrap-datepicker.js
has 425 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* =========================================================
* bootstrap-datepicker.js
* http://www.eyecon.ro/bootstrap-datepicker
* =========================================================
* Copyright 2012 Stefan Petre
Function click
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
click: function(e) {
e.stopPropagation();
e.preventDefault();
var target = $(e.target).closest('span, td, th');
if (target.length === 1) {
Function fill
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fill: function() {
var d = new Date(this.viewDate),
year = d.getFullYear(),
month = d.getMonth(),
currentDate = this.date.valueOf();
Function Datepicker
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Datepicker = function(element, options){
this.element = $(element);
this.format = DPGlobal.parseFormat(options.format||this.element.data('date-format')||'mm/dd/yyyy');
this.picker = $(DPGlobal.template)
.appendTo('body')
Function parseDate
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
parseDate: function(date, format) {
var parts = date.split(format.separator),
date = new Date(),
val;
date.setHours(0);