tbrehm
2011-09-19 40cf9835eecbbacb2ae8be602e9f6d18be4393a0
interface/web/themes/default_combobox/templates/main.tpl.htm
@@ -72,10 +72,16 @@
         loadInitContent();
      });
      jQuery(document).bind("change", function(event) {
         if ($(".panel #Filter").length > 0 && event.target.localName == 'select') {
            $(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
         }
      });
      //Use jQuery submit with kespress Enter in panel filterbar
      jQuery(".panel .list input").live("keypress", function(event) {
         if (event.which == '13' && $(this).parents("tr").find("#Filter")) {
            $(this).parents("tr").find("#Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
      jQuery(document).bind("keypress", function(event) {
         if (event.which == '13' && $(".panel #Filter").length > 0) {
            $(".panel #Filter").attr("onsubmit",$(".panel #Filter").attr("onclick")).submit();
         }
      });
@@ -91,6 +97,7 @@
               .insertAfter( select )
               .width( oldWidth )
               .val( value )
               .css("float","left")
               .autocomplete({
                  delay: 0,
                  minLength: 0,
@@ -135,7 +142,19 @@
                           return false;
                        }
                     }
                  }
                  },
                  // open: function(event, ui) { }, alternativ event for check by enter input
                  search: function(event, ui) {
                     if ( !ui.item ) {
                        var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( $(this).val() ) + "$", "i" ),
                           valid = false;
                        select.children( "option" ).each(function() {
                           if ( $( this ).text().match( matcher ) ) {
                              this.selected = valid = true;
                              return false;
                           }
                        });
                     } }
               })
               .addClass( "ui-widget ui-widget-content ui-corner-left" );
@@ -150,6 +169,7 @@
               .attr( "tabIndex", -1 )
               .attr( "title", "Show All Items" )
               .height($(input).outerHeight())
               .css("float","left")
               .insertAfter( input )
               .button({
                  icons: {