activity-calendar
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -134,3 +134,3 @@ "use strict"; | ||
if (this.o.showPreviousPeriodBtn || this.o.showCurrentRangeInfo || this.o.showNextPeriodBtn) { | ||
this.$header = $("<div class=\"row activity-period-keys\" dir=\"ltr\">\n\n\t\t\t\t" + (this.o.showNextPeriodBtn ? "<div class=\"col-lg-2 col-md-3 col-xs-6\">\n\t\t\t\t\t<button class=\"btn btn-default btn-block btn-calendar btn-calendar-next tooltips\" title=\"" + this.dp.getBtnsRangeText(this._to.clone().subtract(this.o.previousPeriodMonth, "month"), this._to.clone().add(this.o.nextPeriodMonth, "month")) + "\">\n\t\t\t\t\t\t<i class=\"fa fa-angle-" + (this.o.rtl ? "right" : "left") + " btn-calendar-next-icon\"></i>\n\t\t\t\t\t\t" + this.translate("nextBtnText") + "\n\t\t\t\t\t</button>\n\t\t\t\t</div>" : "") + "\n\n\t\t\t\t" + (this.o.showCurrentRangeInfo ? "<div class=\"col-lg-8 " + (!this.o.showNextPeriodBtn ? "col-lg-offset-2" : "") + " col-md-6 hidden-xs text-center date-range-info\">\n\t\t\t\t\t" + this.dp.getHeaderRangeText(this._from, this._to) + "\n\t\t\t\t</div>" : "") + "\n\n\t\t\t\t" + (this.o.showPreviousPeriodBtn ? "<div class=\"col-lg-2 " + (!this.o.showCurrentRangeInfo ? "col-lg-offset-8" : "") + " col-md-3 col-xs-6\">\n\t\t\t\t\t<button class=\"btn btn-default btn-block btn-calendar btn-calendar-prev tooltips\" title=\"" + this.dp.getBtnsRangeText(this._from.clone().subtract(this.o.previousPeriodMonth, "month"), this._from.clone().add(this.o.nextPeriodMonth, "month")) + "\">\n\t\t\t\t\t\t" + this.translate("prevBtnText") + "\n\t\t\t\t\t\t<i class=\"fa fa-angle-" + (this.o.rtl ? "left" : "right") + "\"></i>\n\t\t\t\t\t</button>\n\t\t\t\t</div>" : "") + "\n\n\t\t\t\t" + (this.o.showCurrentRangeInfo ? "<div class=\"col-xs-12 visible-xs text-center date-range-info\">\n\t\t\t\t\t" + this.dp.getHeaderRangeText(this._from, this._to) + "\n\t\t\t\t</div>" : "") + "\n\n\t\t\t</div>"); | ||
this.$header = $("<div class=\"row activity-period-keys\" dir=\"ltr\">\n\n\t\t\t\t" + (this.o.showPreviousPeriodBtn ? "<div class=\"col-lg-2 " + (!this.o.showCurrentRangeInfo ? "col-lg-offset-8" : "") + " col-md-3 col-xs-6\">\n\t\t\t\t\t<button class=\"btn btn-default btn-block btn-calendar btn-calendar-prev tooltips\" title=\"" + this.dp.getBtnsRangeText(this._from.clone().subtract(this.o.previousPeriodMonth, "month"), this._from.clone().add(this.o.nextPeriodMonth, "month")) + "\">\n\t\t\t\t\t\t<i class=\"fa fa-angle-" + (this.o.rtl ? "right" : "left") + "\"></i>\n\t\t\t\t\t\t" + this.translate("prevBtnText") + "\n\t\t\t\t\t</button>\n\t\t\t\t</div>" : "") + "\n\n\t\t\t\t" + (this.o.showCurrentRangeInfo ? "<div class=\"col-lg-8 " + (!this.o.showNextPeriodBtn ? "col-lg-offset-2" : "") + " col-md-6 hidden-xs text-center date-range-info\">\n\t\t\t\t\t" + this.dp.getHeaderRangeText(this._from, this._to) + "\n\t\t\t\t</div>" : "") + "\n\n\t\t\t\t" + (this.o.showNextPeriodBtn ? "<div class=\"col-lg-2 col-md-3 col-xs-6\">\n\t\t\t\t\t<button class=\"btn btn-default btn-block btn-calendar btn-calendar-next tooltips\" title=\"" + this.dp.getBtnsRangeText(this._to.clone().subtract(this.o.previousPeriodMonth, "month"), this._to.clone().add(this.o.nextPeriodMonth, "month")) + "\">\n\t\t\t\t\t\t" + this.translate("nextBtnText") + "\n\t\t\t\t\t\t<i class=\"fa fa-angle-" + (this.o.rtl ? "left" : "right") + " btn-calendar-next-icon\"></i>\n\t\t\t\t\t</button>\n\t\t\t\t</div>" : "") + "\n\n\t\t\t\t" + (this.o.showCurrentRangeInfo ? "<div class=\"col-xs-12 visible-xs text-center date-range-info\">\n\t\t\t\t\t" + this.dp.getHeaderRangeText(this._from, this._to) + "\n\t\t\t\t</div>" : "") + "\n\n\t\t\t</div>"); | ||
} | ||
@@ -142,3 +142,2 @@ var html = ""; | ||
var months = ""; | ||
var columns = 1; | ||
var firstDayOfWeek = this.dp.getFirstDayOfWeek(); | ||
@@ -150,3 +149,2 @@ for (var first = true, x = start.month(); start.diff(end, "day") != end.diff(start, "day"); first = false, start.add(1, "day")) { | ||
if (start.weekday() === firstDayOfWeek || first) { | ||
columns++; | ||
dates += '<div class="activity-calendar-column">'; | ||
@@ -153,0 +151,0 @@ } |
@@ -15,3 +15,3 @@ { | ||
"name": "activity-calendar", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "a simple activity calendar", | ||
@@ -18,0 +18,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26449
586