<commit_before>/* This file is part of Indico.
 * Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
 *
 * Indico is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * Indico is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Indico; if not, see <http://www.gnu.org/licenses/>.
 */

var oldcreate = $.ech.multiselect.prototype._create;

$.extend($.ech.multiselect.prototype, {

    _create: function() {
        this.oldcreate = oldcreate;
        this.oldcreate(this);
        this._fixEventBindings();
    },

    _fixEventBindings: function() {
        this.header.delegate('input[type="checkbox"], input[type="radio"]', 'click.multiselect', function(e) {
            e.stopPropagation();
        });

        this.header.delegate('label', 'mouseenter.multiselect', function(e) {
            e.stopPropagation();
        });<commit_msg>[FIX] Room selector qtip on require buttons<commit_after>/* This file is part of Indico.
 * Copyright (C) 2002 - 2014 European Organization for Nuclear Research (CERN).
 *
 * Indico is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * Indico is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Indico; if not, see <http://www.gnu.org/licenses/>.
 */

var oldcreate = $.ech.multiselect.prototype._create;

$.extend($.ech.multiselect.prototype, {
    _create: function() {
        this.oldcreate = oldcreate;
        this.oldcreate(this);
        this._fixEventBindings();
    },

    _fixEventBindings: function() {
        this.header.delegate('input[type="checkbox"], input[type="radio"]', 'click.multiselect', function(e) {
            e.stopPropagation();
        });

        this.menu.undelegate('label', 'mouseenter.multiselect');
{'fraction_non_alphanumeric': 0.10395090141925585, 'fraction_numerical': 0.006904487917146145, 'mean_word_length': 3.3831932773109243, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1206255', 'n_tokens_mistral': 719, 'n_tokens_neox': 690, 'n_words': 272}