Lines Matching defs:evt

138       this.click_test_action = function(evt) {
139 return _this.test_active_click(evt);
141 this.activate_action = function(evt) {
142 return _this.activate_field(evt);
189 AbstractChosen.prototype.input_focus = function(evt) {
204 AbstractChosen.prototype.input_blur = function(evt) {
328 AbstractChosen.prototype.results_search = function(evt) {
431 AbstractChosen.prototype.choices_click = function(evt) {
432 evt.preventDefault();
438 AbstractChosen.prototype.keyup_checker = function(evt) {
440 stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
452 evt.preventDefault();
454 return this.result_select(evt);
474 AbstractChosen.prototype.clipboard_event_checker = function(evt) {
502 AbstractChosen.prototype.search_results_touchstart = function(evt) {
504 return this.search_results_mouseover(evt);
507 AbstractChosen.prototype.search_results_touchmove = function(evt) {
509 return this.search_results_mouseout(evt);
512 AbstractChosen.prototype.search_results_touchend = function(evt) {
514 return this.search_results_mouseup(evt);
637 this.container.bind('touchstart.chosen', function(evt) {
638 _this.container_mousedown(evt);
639 return evt.preventDefault();
641 this.container.bind('touchend.chosen', function(evt) {
642 _this.container_mouseup(evt);
643 return evt.preventDefault();
645 this.container.bind('mousedown.chosen', function(evt) {
646 _this.container_mousedown(evt);
648 this.container.bind('mouseup.chosen', function(evt) {
649 _this.container_mouseup(evt);
651 this.container.bind('mouseenter.chosen', function(evt) {
652 _this.mouse_enter(evt);
654 this.container.bind('mouseleave.chosen', function(evt) {
655 _this.mouse_leave(evt);
657 this.search_results.bind('mouseup.chosen', function(evt) {
658 _this.search_results_mouseup(evt);
660 this.search_results.bind('mouseover.chosen', function(evt) {
661 _this.search_results_mouseover(evt);
663 this.search_results.bind('mouseout.chosen', function(evt) {
664 _this.search_results_mouseout(evt);
666 this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
667 _this.search_results_mousewheel(evt);
669 this.search_results.bind('touchstart.chosen', function(evt) {
670 _this.search_results_touchstart(evt);
672 this.search_results.bind('touchmove.chosen', function(evt) {
673 _this.search_results_touchmove(evt);
675 this.search_results.bind('touchend.chosen', function(evt) {
676 _this.search_results_touchend(evt);
678 this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
679 _this.results_update_field(evt);
681 this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
682 _this.activate_field(evt);
684 this.form_field_jq.bind("chosen:open.chosen", function(evt) {
685 _this.container_mousedown(evt);
687 this.form_field_jq.bind("chosen:close.chosen", function(evt) {
688 _this.input_blur(evt);
690 this.search_field.bind('blur.chosen', function(evt) {
691 _this.input_blur(evt);
693 this.search_field.bind('keyup.chosen', function(evt) {
694 _this.keyup_checker(evt);
696 this.search_field.bind('keydown.chosen', function(evt) {
697 _this.keydown_checker(evt);
699 this.search_field.bind('focus.chosen', function(evt) {
700 _this.input_focus(evt);
702 this.search_field.bind('cut.chosen', function(evt) {
703 _this.clipboard_event_checker(evt);
705 this.search_field.bind('paste.chosen', function(evt) {
706 _this.clipboard_event_checker(evt);
709 return this.search_choices.bind('click.chosen', function(evt) {
710 _this.choices_click(evt);
713 return this.container.bind('click.chosen', function(evt) {
714 evt.preventDefault();
747 Chosen.prototype.container_mousedown = function(evt) {
749 if (evt && evt.type === "mousedown" && !this.results_showing) {
750 evt.preventDefault();
752 if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
759 } else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
760 evt.preventDefault();
768 Chosen.prototype.container_mouseup = function(evt) {
769 if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
770 return this.results_reset(evt);
774 Chosen.prototype.search_results_mousewheel = function(evt) {
776 if (evt.originalEvent) {
777 delta = evt.originalEvent.deltaY || -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
780 evt.preventDefault();
781 if (evt.type === 'DOMMouseScroll') {
788 Chosen.prototype.blur_test = function(evt) {
811 Chosen.prototype.test_active_click = function(evt) {
813 active_container = $(evt.target).closest('.chosen-container');
920 return this.form_field_label.bind('click.chosen', function(evt) {
922 return _this.container_mousedown(evt);
940 Chosen.prototype.search_results_mouseup = function(evt) {
942 target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
945 this.result_select(evt);
950 Chosen.prototype.search_results_mouseover = function(evt) {
952 target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
958 Chosen.prototype.search_results_mouseout = function(evt) {
959 if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
977 close_link.bind('click.chosen', function(evt) {
978 return _this.choice_destroy_link_click(evt);
985 Chosen.prototype.choice_destroy_link_click = function(evt) {
986 evt.preventDefault();
987 evt.stopPropagation();
989 return this.choice_destroy($(evt.target));
1021 Chosen.prototype.result_select = function(evt) {
1047 if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
1057 evt.preventDefault();
1187 Chosen.prototype.keydown_checker = function(evt) {
1189 stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
1200 this.result_select(evt);
1206 evt.preventDefault();
1211 evt.preventDefault();
1215 evt.preventDefault();
1219 evt.preventDefault();