|
var target = $("#popupTarget");
$(function () {
// declaration
$("#daterangepick").ejDateRangePicker({
width:"100%"
});
});
ej.DateRangePicker.prototype.renderpopup = function (e) {
if (!this.popup) {
this.popup = ej.buildTag("div.e-daterangepicker-popup e-popup e-widget e-box" + this.model.cssClass + "#" + this.element[0].id + "_popup").css("display", "none");
target.append(this.popup);
if (this.model.isResponsive) {
if (this.model.ranges) {
if (this.model.ranges) this._renderRanges();
if (this._customRangePicker) this._customRangePicker.addClass("e-responsive");
this._showRangesOnly = true;
}
else if (!this.model.ranges) {
this._renderPopup();
this._onMainFocusOut();
this._showRangesOnly = false;
}
}
else {
this._renderPopup();
this._onMainFocusOut();
this._showRangesOnly = false;
}
}
else if (this.model.isResponsive && this._customRangePicker && this.datePopup) {
this.datePopup.hide();
this._buttonDiv.hide();
this._customRangePicker.show().addClass("e-responsive");
this._showRangesOnly = true;
}
if (typeof (this.model.value) === "string" && !ej.isNullOrUndefined(this.model.value) && !this._notapplied) this._updateValues();
else if (typeof (this.model.value) === "object" && this.model.value == null && !this._notapplied) this._updateValues();
}
|
|
|