datawinners/media/javascript/monthly_date_picker/month-picker.js
Function init
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init:function (options) {
return this.each(function () {
var
$this = $(this),
data = $this.data('monthpicker'),
Function mountWidget
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
mountWidget:function (global_settings, settings) {
var
monthpicker = this,
container = $('<div id="' + settings.id + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" />'),
header = $('<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all mtz-monthpicker" />'),
Function format_date
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function format_date(global_settings, month_start, year_start, month_end, year_end) {
Function setMPDates
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function setMPDates(monthpicker, start_year, start_month, end_year, end_month){