| | |
| | | document.getElementsByTagName("head")[0].appendChild(style); |
| | | } |
| | | |
| | | |
| | | jQuery(document).ready(function() { |
| | | 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(document).bind("keypress", function(event) { |
| | | if (event.which == '13' && $(".panel #Filter").length > 0) { |
| | |
| | | .insertAfter( select ) |
| | | .width( oldWidth ) |
| | | .val( value ) |
| | | .css("float","left") |
| | | .autocomplete({ |
| | | delay: 0, |
| | | minLength: 0, |
| | |
| | | var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); |
| | | response( select.children( "option" ).map(function() { |
| | | var text = $( this ).text(); |
| | | //if ( this.value && ( !request.term || matcher.test(text) ) ) |
| | | if (( !request.term || matcher.test(text) ) ) |
| | | return { |
| | | label: text.replace( |
| | | new RegExp( |
| | |
| | | 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" ); |
| | | |
| | |
| | | this.button = $( "<button type='button'> </button>" ) |
| | | .attr( "tabIndex", -1 ) |
| | | .attr( "title", "Show All Items" ) |
| | | .height($(input).outerHeight()) |
| | | .css("float","left") |
| | | .insertAfter( input ) |
| | | .button({ |
| | | icons: { |