Lines Matching full:this

18 		d(e).on("click", c, this.close)
21 var i = d(this), g = i.attr("data-target"), h;
42 return this.each(function () {
43 var g = d(this), f = g.data("alert");
45 g.data("alert", (f = new b(this)))
55 return this
61 this.$element = c(e);
62 this.options = c.extend({}, c.fn.button.defaults, d)
65 var i = "disabled", e = this.$element, f = e.data(), h = e.is("input") ? "val" : "html";
68 e[h](f[g] || this.options[g]);
74 var d = this.$element.closest('[data-toggle="buttons-radio"]');
76 this.$element.toggleClass("active")
80 return this.each(function () {
81 var g = c(this), f = g.data("button"), e = typeof d == "object" && d;
83 g.data("button", (f = new b(this, e)))
98 return this
110 this.$element = b(e);
111 this.options = d;
112this.options.pause == "hover" && this.$element.on("mouseenter", b.proxy(this.pause, this)).on("mou…
116 this.paused = false
118this.options.interval && !this.paused && (this.interval = setInterval(b.proxy(this.next, this), th…
119 return this
121 var d = this.$element.find(".item.active"), e = d.parent().children(), f = e.index(d), g = this;
125 if (this.sliding) {
126 return this.$element.one("slid", function () {
131 return this.pause().cycle()
133 return this.slide(h > f ? "next" : "prev", b(e[h]))
136 this.paused = true
138 if (this.$element.find(".next, .prev").length && b.support.transition.end) {
139 this.$element.trigger(b.support.transition.end);
140 this.cycle()
142 clearInterval(this.interval);
143 this.interval = null;
144 return this
146 if (this.sliding) {
149 return this.slide("next")
151 if (this.sliding) {
154 return this.slide("prev")
156 if (!b.support.transition && this.$element.hasClass("slide")) {
157 this.$element.find(".item").stop(true, true)
159this.$element.find(".item.active"), d = f || m[k](), j = this.interval, l = k == "next" ? "left" :…
160 this.sliding = true;
161 j && this.pause();
162 d = d.length ? d : this.$element.find(".item")[g]();
167 if (b.support.transition && this.$element.hasClass("slide")) {
168 this.$element.trigger(i);
176 this.$element.one(b.support.transition.end, function () {
185 if (!b.support.transition && this.$element.hasClass("slide")) {
186 this.$element.trigger(i);
201 this.$element.trigger(i);
207 this.sliding = false;
208 this.$element.trigger("slid")
211 j && this.cycle();
212 return this
216 return this.each(function () {
217 …var h = b(this), g = h.data("carousel"), e = b.extend({}, b.fn.carousel.defaults, typeof d == "obj…
219 h.data("carousel", (g = new c(this, e)))
238 return this
241 …var h = b(this), f, d = b(h.attr("data-target") || (f = h.attr("href")) && f.replace(/.*(?=#[^\s]+…
248 this.$element = b(e);
249 this.options = b.extend({}, b.fn.collapse.defaults, d);
250 if (this.options.parent) {
251 this.$parent = b(this.options.parent)
253 this.options.toggle && this.toggle()
256 var d = this.$element.hasClass("width");
260 if (this.transitioning) {
263 g = this.dimension();
265 f = this.$parent && this.$parent.find("> .accordion-group > .in");
274 this.$element[g](0);
275 this.transition("addClass", b.Event("show"), "shown");
276 b.support.transition && this.$element[g](this.$element[0][d])
279 if (this.transitioning) {
282 d = this.dimension();
283 this.reset(this.$element[d]());
284 this.transition("removeClass", b.Event("hide"), "hidden");
285 this.$element[d](0)
287 var e = this.dimension();
288 this.$element.removeClass("collapse")[e](d || "auto")[0].offsetWidth;
289 this.$element[d !== null ? "addClass" : "removeClass"]("collapse");
290 return this
292 var g = this, d = function () {
299 this.$element.trigger(e);
303 this.transitioning = 1;
304 this.$element[h]("in");
305 …b.support.transition && this.$element.hasClass("collapse") ? this.$element.one(b.support.transitio…
307 this[this.$element.hasClass("in") ? "hide" : "show"]()
311 return this.each(function () {
312 var g = b(this), f = g.data("collapse"), e = typeof d == "object" && d;
314 g.data("collapse", (f = new c(this, e)))
325 return this
328 …var h = b(this), d, g = h.attr("data-target") || i.preventDefault() || (d = h.attr("href")) && d.r…
335 var g = f(h).on("click.dropdown.data-api", this.toggle);
341 var i = f(this), h, g;
358 k = f(this);
387 e(f(this)).removeClass("open")
404 return this.each(function () {
405 var i = f(this), h = i.data("dropdown");
407 i.data("dropdown", (h = new a(this)))
417 return this
427 this.options = d;
428this.$element = c(e).delegate('[data-dismiss="modal"]', "click.dismiss.modal", c.proxy(this.hide,
429 this.options.remote && this.$element.find(".modal-body").load(this.options.remote)
432 return this[!this.isShown ? "show" : "hide"]()
434 var d = this, f = c.Event("show");
435 this.$element.trigger(f);
436 if (this.isShown || f.isDefaultPrevented()) {
439 this.isShown = true;
440 this.escape();
441 this.backdrop(function () {
458 var d = this;
460 this.$element.trigger(f);
461 if (!this.isShown || f.isDefaultPrevented()) {
464 this.isShown = false;
465 this.escape();
467 this.$element.removeClass("in").attr("aria-hidden", true);
468 …c.support.transition && this.$element.hasClass("fade") ? this.hideWithTransition() : this.hideModa…
470 var d = this;
477 var d = this;
478 if (this.isShown && this.options.keyboard) {
479 this.$element.on("keyup.dismiss.modal", function (f) {
483 if (!this.isShown) {
484 this.$element.off("keyup.dismiss.modal")
488 var d = this, e = setTimeout(function () {
492 this.$element.one(c.support.transition.end, function () {
497 this.$element.hide().trigger("hidden");
498 this.backdrop()
500 this.$backdrop.remove();
501 this.$backdrop = null
503 var f = this, e = this.$element.hasClass("fade") ? "fade" : "";
504 if (this.isShown && this.options.backdrop) {
506 this.$backdrop = c('<div class="modal-backdrop ' + e + '" />').appendTo(document.body);
507this.$backdrop.click(this.options.backdrop == "static" ? c.proxy(this.$element[0].focus, this.$ele…
509 this.$backdrop[0].offsetWidth
511 this.$backdrop.addClass("in");
512 d ? this.$backdrop.one(c.support.transition.end, g) : g()
514 if (!this.isShown && this.$backdrop) {
515 this.$backdrop.removeClass("in");
516 …t.transition && this.$element.hasClass("fade") ? this.$backdrop.one(c.support.transition.end, c.pr…
526 return this.each(function () {
527 …var g = c(this), f = g.data("modal"), e = c.extend({}, c.fn.modal.defaults, g.data(), typeof d == …
529 g.data("modal", (f = new b(this, e)))
544 return this
547 …var h = c(this), f = h.attr("href"), d = c(h.attr("data-target") || (f && f.replace(/.*(?=#[^\s]+$…
556 this.init("tooltip", e, d)
560 this.type = g;
561 this.$element = c(f);
562 this.options = this.getOptions(e);
563 this.enabled = true;
564 if (this.options.trigger == "click") {
565 this.$element.on("click." + this.type, this.options.selector, c.proxy(this.toggle, this))
567 if (this.options.trigger != "manual") {
568 h = this.options.trigger == "hover" ? "mouseenter" : "focus";
569 d = this.options.trigger == "hover" ? "mouseleave" : "blur";
570 this.$element.on(h + "." + this.type, this.options.selector, c.proxy(this.enter, this));
571 this.$element.on(d + "." + this.type, this.options.selector, c.proxy(this.leave, this))
574this.options.selector ? (this._options = c.extend({}, this.options, {trigger: "manual", selector: …
576 d = c.extend({}, c.fn[this.type].defaults, d, this.$element.data());
582 var d = c(f.currentTarget)[this.type](this._options).data(this.type);
586 clearTimeout(this.timeout);
588 this.timeout = setTimeout(function () {
594 var d = c(f.currentTarget)[this.type](this._options).data(this.type);
595 if (this.timeout) {
596 clearTimeout(this.timeout)
602 this.timeout = setTimeout(function () {
609 if (this.hasContent() && this.enabled) {
610 h = this.tip();
611 this.setContent();
612 if (this.options.animation) {
615 …e = typeof this.options.placement == "function" ? this.options.placement.call(this, h[0], this.$el…
617 h.detach().css({top: 0, left: 0, display: "block"}).insertAfter(this.$element);
618 j = this.getPosition(d);
638 var e = this.tip(), d = this.getTitle();
639 e.find(".tooltip-inner")[this.options.html ? "html" : "text"](d);
642 var d = this, e = this.tip();
654 c.support.transition && this.$tip.hasClass("fade") ? f() : e.detach();
655 return this
657 var d = this.$element;
662 return this.getTitle()
664 … c.extend({}, (d ? {top: 0, left: 0} : this.$element.offset()), {width: this.$element[0].offsetWid…
666 var f, d = this.$element, e = this.options;
670 return this.$tip = this.$tip || c(this.options.template)
672 if (!this.$element[0].parentNode) {
673 this.hide();
674 this.$element = null;
675 this.options = null
678 this.enabled = true
680 this.enabled = false
682 this.enabled = !this.enabled
684 var d = c(f.currentTarget)[this.type](this._options).data(this.type);
687 this.hide().$element.off("." + this.type).removeData(this.type)
691 return this.each(function () {
692 var g = c(this), f = g.data("tooltip"), e = typeof d == "object" && d;
694 g.data("tooltip", (f = new b(this, e)))
705 return this
710 this.init("popover", e, d)
713 var f = this.tip(), e = this.getTitle(), d = this.getContent();
714 f.find(".popover-title")[this.options.html ? "html" : "text"](e);
715 f.find(".popover-content")[this.options.html ? "html" : "text"](d);
718 return this.getTitle() || this.getContent()
720 var e, d = this.$element, f = this.options;
724 if (!this.$tip) {
725 this.$tip = c(this.options.template)
727 return this.$tip
729 this.hide().$element.off("." + this.type).removeData(this.type)
733 return this.each(function () {
734 var g = c(this), f = g.data("popover"), e = typeof d == "object" && d;
736 g.data("popover", (f = new b(this, e)))
747 return this
752 var h = c.proxy(this.process, this), d = c(g).is("body") ? c(window) : c(g), e;
753 this.options = c.extend({}, c.fn.scrollspy.defaults, f);
754 this.$scrollElement = d.on("scroll.scroll-spy.data-api", h);
755this.selector = (this.options.target || ((e = c(g).attr("href")) && e.replace(/.*(?=#[^\s]+$)/, ""…
756 this.$body = c("body");
757 this.refresh();
758 this.process()
762 var d = this, e;
763 this.offsets = c([]);
764 this.targets = c([]);
765 e = this.$body.find(this.selector).map(function () {
766 var g = c(this), f = g.data("target") || g.attr("href"), h = /^#\w/.test(f) && c(f);
773 d.offsets.push(this[0]);
774 d.targets.push(this[1])
777this.$scrollElement.scrollTop() + this.options.offset, f = this.$scrollElement[0].scrollHeight ||
779 return k != (e = d.last()[0]) && this.activate(e)
782 k != d[e] && j >= g[e] && (!g[e + 1] || j <= g[e + 1]) && this.activate(d[e])
786 this.activeTarget = f;
787 c(this.selector).parent(".active").removeClass("active");
788 d = this.selector + '[data-target="' + f + '"],' + this.selector + '[href="' + f + '"]';
797 return this.each(function () {
798 var g = c(this), f = g.data("scrollspy"), e = typeof d == "object" && d;
800 g.data("scrollspy", (f = new b(this, e)))
811 return this
815 var d = c(this);
822 this.element = c(d)
825 var j = this.element, g = j.closest("ul:not(.dropdown-menu)"), f = j.attr("data-target"), h, d, i;
840 this.activate(j.parent("li"), g);
841 this.activate(d, d.parent(), function () {
867 return this.each(function () {
868 var f = c(this), e = f.data("tab");
870 f.data("tab", (e = new b(this)))
880 return this
884 c(this).tab("show")
889 this.$element = b(e);
890 this.options = b.extend({}, b.fn.typeahead.defaults, d);
891 this.matcher = this.options.matcher || this.matcher;
892 this.sorter = this.options.sorter || this.sorter;
893 this.highlighter = this.options.highlighter || this.highlighter;
894 this.updater = this.options.updater || this.updater;
895 this.source = this.options.source;
896 this.$menu = b(this.options.menu);
897 this.shown = false;
898 this.listen()
901 var d = this.$menu.find(".active").attr("data-value");
902 this.$element.val(this.updater(d)).change();
903 return this.hide()
907 var d = b.extend({}, this.$element.position(), {height: this.$element[0].offsetHeight});
908 this.$menu.insertAfter(this.$element).css({top: d.top + d.height, left: d.left}).show();
909 this.shown = true;
910 return this
912 this.$menu.hide();
913 this.shown = false;
914 return this
917 this.query = this.$element.val();
918 if (!this.query || this.query.length < this.options.minLength) {
919 return this.shown ? this.hide() : this
921 …d = b.isFunction(this.source) ? this.source(this.query, b.proxy(this.process, this)) : this.source;
922 return d ? this.process(d) : this
924 var e = this;
928 d = this.sorter(d);
930 return this.shown ? this.hide() : this
932 return this.render(d.slice(0, this.options.items)).show()
934 return ~d.toLowerCase().indexOf(this.query.toLowerCase())
938 if (!h.toLowerCase().indexOf(this.query.toLowerCase())) {
941 if (~h.indexOf(this.query)) {
950 var e = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
955 var e = this;
962 this.$menu.html(d);
963 return this
965 var f = this.$menu.find(".active").removeClass("active"), d = f.next();
967 d = b(this.$menu.find("li")[0])
971 var f = this.$menu.find(".active").removeClass("active"), d = f.prev();
973 d = this.$menu.find("li").last()
977this.$element.on("blur", b.proxy(this.blur, this)).on("keypress", b.proxy(this.keypress, this)).on…
978 if (this.eventSupported("keydown")) {
979 this.$element.on("keydown", b.proxy(this.keydown, this))
981this.$menu.on("click", b.proxy(this.click, this)).on("mouseenter", "li", b.proxy(this.mouseenter,
983 var e = d in this.$element;
985 this.$element.setAttribute(d, "return;");
986 e = typeof this.$element[d] === "function"
990 if (!this.shown) {
1001 this.prev();
1005 this.next();
1010 this.suppressKeyPressRepeat = ~b.inArray(d.keyCode, [40, 38, 9, 13, 27]);
1011 this.move(d)
1013 if (this.suppressKeyPressRepeat) {
1016 this.move(d)
1027 if (!this.shown) {
1030 this.select();
1033 if (!this.shown) {
1036 this.hide();
1039 this.lookup()
1044 var d = this;
1051 this.select()
1053 this.$menu.find(".active").removeClass("active");
1058 return this.each(function () {
1059 var g = b(this), f = g.data("typeahead"), e = typeof d == "object" && d;
1061 g.data("typeahead", (f = new c(this, e)))
1072 return this
1075 var d = b(this);
1085 this.options = c.extend({}, c.fn.affix.defaults, d);
1086this.$window = c(window).on("scroll.affix.data-api", c.proxy(this.checkPosition, this)).on("click.…
1087 setTimeout(c.proxy(this.checkPosition, this), 1)
1088 }, this));
1089 this.$element = c(e);
1090 this.checkPosition()
1093 if (!this.$element.is(":visible")) {
1096 …var h = c(document).height(), j = this.$window.scrollTop(), d = this.$element.offset(), k = this.o…
1106 …e = this.unpin != null && (j + this.unpin <= d.top) ? false : f != null && (d.top + this.$element.…
1107 if (this.affixed === e) {
1110 this.affixed = e;
1111 this.unpin = e == "bottom" ? d.top - j : null;
1112 this.$element.removeClass(i).addClass("affix" + (e ? "-" + e : ""))
1116 return this.each(function () {
1117 var g = c(this), f = g.data("affix"), e = typeof d == "object" && d;
1119 g.data("affix", (f = new b(this, e)))
1130 return this
1134 var e = c(this), d = e.data();