Lines Matching refs:el

178     els.each(function (i, el) {
180 var naturalOffset = $(el).outerHeight(true);
182 flexEls.push(el);
184 flexHeights.push($(el).height());
198 $(flexEls).each(function (i, el) {
204 $(el).height(newHeight);
248 function getScrollParent(el) {
249 var position = el.css('position');
250 var scrollParent = el.parents().filter(function () {
254 …return position === 'fixed' || !scrollParent.length ? $(el[0].ownerDocument || document) : scrollP…
260 function getOuterRect(el, origin) {
261 var offset = el.offset();
266 right: left + el.outerWidth(),
268 bottom: top + el.outerHeight()
277 function getClientRect(el, origin) {
278 var offset = el.offset();
279 var scrollbarWidths = getScrollbarWidths(el);
280 …var left = offset.left + getCssFloat(el, 'border-left-width') + scrollbarWidths.left - (origin ? o…
281 …var top = offset.top + getCssFloat(el, 'border-top-width') + scrollbarWidths.top - (origin ? origi…
284 right: left + el[0].clientWidth,
286 bottom: top + el[0].clientHeight // clientHeight includes padding but NOT scrollbars
293 function getContentRect(el, origin) {
294 var offset = el.offset(); // just outside of border, margin not included
295 … var left = offset.left + getCssFloat(el, 'border-left-width') + getCssFloat(el, 'padding-left') -
297 var top = offset.top + getCssFloat(el, 'border-top-width') + getCssFloat(el, 'padding-top') -
301 right: left + el.width(),
303 bottom: top + el.height()
310 function getScrollbarWidths(el) {
311 var leftRightWidth = el[0].offsetWidth - el[0].clientWidth;
312 var bottomWidth = el[0].offsetHeight - el[0].clientHeight;
317 …if (getIsLeftRtlScrollbars() && el.css('direction') === 'rtl') { // is the scrollbar on the left s…
342 var el = $('<div><div></div></div>')
353 var innerEl = el.children();
354 …var res = innerEl.offset().left > el.offset().left; // is the inner div shifted to accommodate a l…
355 el.remove();
360 function getCssFloat(el, prop) {
361 return parseFloat(el.css(prop)) || 0;
394 function preventSelection(el) {
395 el.addClass('fc-unselectable')
399 function allowSelection(el) {
400 el.removeClass('fc-unselectable')
3447 this.el = this.renderEl();
3459 this.el.remove();
3555 InteractiveDateComponent.prototype.setElement = function (el) {
3556 _super.prototype.setElement.call(this, el);
3558 this.dateClicking.bindToEl(el);
3561 this.dateSelecting.bindToEl(el);
3563 this.bindAllSegHandlersToEl(el);
3585 InteractiveDateComponent.prototype.bindDateHandlerToEl = function (el, name, handler) {
3589 this.el.on(name, function (ev) {
3599 InteractiveDateComponent.prototype.bindAllSegHandlersToEl = function (el) {
3606 eventInteraction.bindToEl(el);
3610 InteractiveDateComponent.prototype.bindSegHandlerToEl = function (el, name, handler) {
3612 el.on(name, this.segSelector, function (ev) {
3982 args: [this, this.el]
3988 args: [this, this.el]
4145 View.prototype.reportEventDrop = function (eventInstance, eventMutation, el, ev) {
4155 (dateMutation && dateMutation.dateDelta) || moment.duration(), undoFunc, el, ev);
4158 View.prototype.triggerEventDrop = function (eventInstance, dateDelta, undoFunc, el, ev) {
4160 context: el[0],
4176 View.prototype.reportExternalDrop = function (singleEventDef, isEvent, isSticky, el, ev, ui) {
4180 this.triggerExternalDrop(singleEventDef, isEvent, el, ev, ui);
4183 View.prototype.triggerExternalDrop = function (singleEventDef, isEvent, el, ev, ui) {
4186 context: el[0],
4208 View.prototype.reportEventResize = function (eventInstance, eventMutation, el, ev) {
4214 this.triggerEventResize(eventInstance, resizeDelta, undoFunc, el, ev);
4217 View.prototype.triggerEventResize = function (eventInstance, resizeDelta, undoFunc, el, ev) {
4219 context: el[0],
4288 seg.el // necessary?
4290 seg.el.addClass('fc-selected');
4299 if (seg.el) { // necessary?
4300 seg.el.removeClass('fc-selected');
4347 args: [this, this.el]
4353 args: [this, this.el]
4595 filterEl: function (seg, el) {
4596 return _this.filterEventRenderEl(seg.footprint, el);
4628 var el = $(node);
4630 el = _this.filterEventRenderEl(seg.footprint, el);
4632 if (el) {
4633 el.data('fc-seg', seg); // used by handlers
4634 seg.el = el;
4668 EventRenderer.prototype.filterEventRenderEl = function (eventFootprint, el) {
4672 args: [legacy, el, this.view]
4675 el = null;
4678 el = $(custom);
4680 return el;
6125 var el = $(node);
6126 var left = el.offset().left;
6127 var width = el.outerWidth();
6139 var el = $(node);
6140 var top = el.offset().top;
6141 var height = el.outerHeight();
6564 var el = this.scrollEl;
6566 if (el.scrollTop() <= 0) { // already scrolled all the way up?
6571 …if (el.scrollTop() + el[0].clientHeight >= el[0].scrollHeight) { // already scrolled all the way d…
6576 if (el.scrollLeft() <= 0) { // already scrolled all the left?
6581 …if (el.scrollLeft() + el[0].clientWidth >= el[0].scrollWidth) { // already scrolled all the way ri…
6588 var el = this.scrollEl;
6592 el.scrollTop(el.scrollTop() + this.scrollTopVel * frac);
6595 el.scrollLeft(el.scrollLeft() + this.scrollLeftVel * frac);
7080 // Then, compute the 'el' for each segment.
7156 // assigns each seg's el and returns a subset of segs that were rendered
7159 segs[i].el.addClass(classNames);
7163 segs[i].el.css('opacity', opacity);
7211 EventPointing.prototype.bindToEl = function (el) {
7213 component.bindSegHandlerToEl(el, 'click', this.handleClick.bind(this));
7214 component.bindSegHandlerToEl(el, 'mouseenter', this.handleMouseover.bind(this));
7215 component.bindSegHandlerToEl(el, 'mouseleave', this.handleMouseout.bind(this));
7219 context: seg.el[0],
7233 seg.el.addClass('fc-allow-mouse-resize');
7236 context: seg.el[0],
7248 seg.el.removeClass('fc-allow-mouse-resize');
7251 context: seg.el[0],
7375 this.el.html(html);
7376 this.rowEls = this.el.find('.fc-row');
7377 this.cellEls = this.el.find('.fc-day, .fc-disabled-day');
7787 topEl = view.el; // will cause the popover to cover any sort of header
7795 parentEl: view.el,
7822 this.bindAllSegHandlersToEl(this.segPopover.el);
7851 segContainer.append(segs[i].el);
7970 this.el.addClass('fc-basic-view').html(this.renderSkeletonHtml());
7972 dayGridContainerEl = this.scroller.el.addClass('fc-day-grid-container');
7974 this.el.find('.fc-body > tr > td').append(dayGridContainerEl);
7975 this.dayGrid.headContainerEl = this.el.find('.fc-head-container');
8035 this.weekNumberWidth = util_1.matchCellWidths(this.el.find('.fc-week-number'));
8069 … util_1.subtractInnerElHeight(this.el, this.scroller.el); // everything that's NOT the scroller
9533 this.el.animate({
9548 var el = this.el;
9549 if (!el) {
9550 el = this.el = this.sourceEl.clone()
9566 el.addClass('fc-unselectable');
9567 el.appendTo(this.parentEl);
9569 return el;
9573 if (this.el) {
9574 this.el.remove();
9575 this.el = null;
9586 origin = this.el.offsetParent().offset();
9590 this.el.css({
9607 if (this.el) {
9608 this.el.hide();
9656 if (!this.el) {
9659 this.el.show();
9668 this.el.hide();
9677 this.el = $('<div class="fc-popover">')
9687 this.el.on('click', '.fc-close', function () {
9697 if (this.el && !$(ev.target).closest(this.el).length) {
9704 if (this.el) {
9705 this.el.remove();
9706 this.el = null;
9713 var origin = this.el.offsetParent().offset();
9714 var width = this.el.outerWidth();
9715 var height = this.el.outerHeight();
9717 var viewportEl = util_1.getScrollParent(this.el);
9754 this.el.css({
9974 Component.prototype.setElement = function (el) {
9975 this.el = el;
9984 this.el.remove();
10211 if (seg.el) { // necessary?
10215 args: [legacy, seg.el, _this]
10229 if (seg.el) { // necessary?
10233 args: [legacy, seg.el, _this]
10246 seg.el // necessary?
10248 seg.el.css('visibility', '');
10258 seg.el // necessary?
10260 seg.el.css('visibility', 'hidden');
10617 function Calendar(el, overrides) {
10624 this.el = el;
10652 context = this.el[0]; // fallback context
10806 var el = this.el;
10807 el.addClass('fc');
10809 el.on('click.fc', 'a[data-goto]', function (ev) {
10833 el.addClass(widgetClass);
10839 el.removeClass(widgetClass);
10853 el.toggleClass('fc-ltr', !opts.isRTL);
10854 el.toggleClass('fc-rtl', opts.isRTL);
10856 this.contentEl = $("<div class='fc-view-container'>").prependTo(el);
10872 this.el.removeClass('fc fc-ltr fc-rtl');
10876 this.el.off('.fc'); // unbind nav link handlers
10884 return this.el.is(':visible');
11013 this.suggestedViewHeight = this.el.parent().height() - this.queryToolbarsHeight();
11083 if (header.el) {
11084 this.el.prepend(header.el);
11092 if (footer.el) {
11093 this.el.append(footer.el);
11117 var toolbarHeight = toolbar.el ? toolbar.el.outerHeight(true) : 0; // includes margin
11585 var el;
11588 el = $((ui ? ui.item : null) || ev.target);
11592 if ($.isFunction(accept) ? accept.call(el[0], el) : el.is(accept)) {
11594 this.listenToExternalDrag(el, ev, ui);
11600 ExternalDropping.prototype.listenToExternalDrag = function (el, ev, ui) {
11604 …var meta = getDraggedElMeta(el); // extra data about event drop, including possible event to create
11650 el, ev, ui);
11702 function getDraggedElMeta(el) {
11711 eventProps = el.data(prefix + 'event') || null;
11733 startTime = el.data(prefix + 'start');
11736 startTime = el.data(prefix + 'time');
11739 duration = el.data(prefix + 'duration');
11742 stick = el.data(prefix + 'stick');
11786 EventResizing.prototype.bindToEl = function (el) {
11788 component.bindSegHandlerToEl(el, 'mousedown', this.handleMouseDown.bind(this));
11789 component.bindSegHandlerToEl(el, 'touchstart', this.handleTouchStart.bind(this));
11811 var el = seg.el;
11819 subjectEl: el,
11876 view.reportEventResize(eventInstance, resizeMutation, el, ev);
11887 context: seg.el[0],
11900 context: seg.el[0],
11985 EventDragging.prototype.bindToEl = function (el) {
11987 component.bindSegHandlerToEl(el, 'mousedown', this.handleMousedown.bind(this));
11988 component.bindSegHandlerToEl(el, 'touchstart', this.handleTouchStart.bind(this));
12044 var el = seg.el;
12057 subjectEl: el,
12062 mouseFollower = new MouseFollower_1.default(seg.el, {
12064 parentEl: view.el,
12147 view.reportEventDrop(eventInstance, eventDefMutation, el, ev);
12159 context: seg.el[0],
12172 context: seg.el[0],
12253 DateSelecting.prototype.bindToEl = function (el) {
12257 component.bindDateHandlerToEl(el, 'mousedown', function (ev) {
12264 component.bindDateHandlerToEl(el, 'touchstart', function (ev) {
12271 util_1.preventSelection(el);
12379 DateClicking.prototype.bindToEl = function (el) {
12382 component.bindDateHandlerToEl(el, 'mousedown', function (ev) {
12387 component.bindDateHandlerToEl(el, 'touchstart', function (ev) {
12487 this.el.addClass('fc-agenda-view').html(this.renderSkeletonHtml());
12489 timeGridWrapEl = this.scroller.el.addClass('fc-time-grid-container');
12491 this.el.find('.fc-body > tr > td').append(timeGridWrapEl);
12492 this.timeGrid.headContainerEl = this.el.find('.fc-head-container');
12495 this.dayGrid.setElement(this.el.find('.fc-day-grid'));
12497 this.dayGrid.bottomCoordPadding = this.dayGrid.el.next('hr').outerHeight();
12553 this.axisWidth = util_1.matchCellWidths(this.el.find('.fc-axis'));
12564 var noScrollRowEls = this.el.find('.fc-row:not(.fc-scroller *)');
12604 … util_1.subtractInnerElHeight(this.el, this.scroller.el); // everything that's NOT the scroller
12889 this.el.html('<div class="fc-bg"></div>' +
12892 this.bottomRuleEl = this.el.find('hr');
12896 this.slatContainerEl = this.el.find('> .fc-slats')
12954 this.el.find('> .fc-bg').html('<table class="' + theme.getClass('tableGrid') + '">' +
12957 this.colEls = this.el.find('.fc-day, .fc-disabled-day');
12998 this.el.append(skeletonEl);
13033 containerEls.eq(col).append(segs[i].el);
13065 .appendTo(this.el.find('.fc-content-skeleton'))[0]);
13141 seg.el.css(this.generateSegVerticalCss(seg));
13301 seg.el.remove();
13463 seg.el.css(this.generateFgSegHorizontalCss(seg));
13467 seg.el.addClass('fc-short'); // TODO: "condensed" is a better name
13604 sourceEl = sourceSeg.el;
13605 seg.el.css({
13612 helperNodes.push(seg.el[0]);
13649 return seg.el[0];
13762 td = $('<td class="fc-event-container">').append(seg.el);
13937 skeletonTop = sourceSeg.el.position().top;
14010 trEl.append(seg.el.attr('colspan', endCol - startCol));
14119 this.el.addClass('fc-list-view ' +
14122 this.scroller.el.appendTo(this.el);
14137 … util_1.subtractInnerElHeight(this.el, this.scroller.el); // everything that's NOT the scroller
14209 tbodyEl.append(daySegs[i].el); // append event row
14444 this.el = null; // mirrors local `el`
14456 var el = this.el;
14458 if (!el) {
14459el = this.el = $("<div class='fc-toolbar " + this.toolbarOptions.extraClasses + "'>");
14462 el.empty();
14464 el.append(this.renderSection('left'))
14474 if (this.el) {
14475 this.el.remove();
14476 this.el = null;
14618 if (this.el) {
14619 this.el.find('h2').text(text);
14623 if (this.el) {
14624 this.el.find('.fc-' + buttonName + '-button')
14629 if (this.el) {
14630 this.el.find('.fc-' + buttonName + '-button')
14635 if (this.el) {
14636 this.el.find('.fc-' + buttonName + '-button')
14642 if (this.el) {
14643 this.el.find('.fc-' + buttonName + '-button')