tbrehm
2012-10-24 23fa83930b415c772d6acd11d8908f7dba98494f
interface/web/js/jquery.tipsy.js
@@ -269,7 +269,7 @@
                        response( select.children( "option" ).map(function() {
                            var text = $( this ).text();
                            //if ( this.value && ( !request.term || matcher.test(text) ) )
                            if ( !request.term || matcher.test(text) )
                            if ( (!request.term || matcher.test(text)) && $(this).css('display') != 'none' )
                                return {
                                    label: (text == "" ? " " : text.replace(
                                        new RegExp(
@@ -278,7 +278,7 @@
                                            ")(?![^<>]*>)(?![^&;]+;)", "gi"
                                        ), "<strong>$1</strong>" )),
                                    value: text,
                                    class: (select.hasClass('flags') ? 'country-' + $(this).val() : $(this).attr('class')),
                                    class: (select.hasClass('flags') ? 'country-' + $(this).val().toUpperCase() : $(this).attr('class')),
                                    option: this
                                };
                        }) );
@@ -305,7 +305,7 @@
                                matchtext = $(this).val();
                                valid = false;
                            select.children( "option" ).each(function() {
                                if( ($(this).text() == "" && matchtext == "") || $( this ).text().match( matcher ) ) {
                                if( (($(this).text() == "" && matchtext == "") || $( this ).text().match( matcher )) && $(this).css('display') != 'none' ) {
                                    select.val($(this).val());
                                    this.selected = valid = true;
                                    return false;
@@ -329,7 +329,7 @@
                            valid = false,
                            selected = false;
                        select.children( "option" ).each(function() {
                            if( ($(this).val() == "" && matchtext == "") || $( this ).text().match( matcher ) ) {
                            if( (($(this).val() == "" && matchtext == "") || $( this ).text().match( matcher )) && $(this).css('display') != 'none' ) {
                                valid = true;
                                selected = $(this);
                                return false;
@@ -357,7 +357,7 @@
                    valid = false,
                    selected = false;
                select.children( "option" ).each(function() {
                    if( ($(this).val() == "" && matchtext == "") || $( this ).text().match( matcher ) ) {
                    if( (($(this).val() == "" && matchtext == "") || $( this ).text().match( matcher )) && $(this).css('display') != 'none' ) {
                        valid = true;
                        selected = $(this);
                        return false;