| | |
| | | <meta http-equiv="Content-Type" content="text/html; charset=<tmpl_var name="html_content_encoding">"/> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=8"/> |
| | | <link href="themes/default/css/central.css" rel="stylesheet" type="text/css"/> |
| | | <link href="themes/default_combobox/css/additional.css" rel="stylesheet" type="text/css"/> |
| | | <!--[if lte IE 7]> |
| | | <link href="themes/default/css/patches/central.css" rel="stylesheet" type="text/css" /> |
| | | <![endif]--> |
| | |
| | | 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) { |
| | |
| | | } |
| | | }); |
| | | |
| | | // jQuery(document).ready( function(){ |
| | | // |
| | | // }); |
| | | |
| | | (function( $ ) { |
| | | $.widget( "ui.combobox", { |
| | | _create: function() { |
| | | var self = this, |
| | | oldWidth = this.element.width(), |
| | | select = this.element.hide(), |
| | | selected = select.children( ":selected" ), |
| | | value = selected.val() ? selected.text() : ""; |
| | | var input = this.input = $( "<input>" ) |
| | | .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: { |
| | |
| | | } |
| | | }); |
| | | })( jQuery ); |
| | | |
| | | |
| | | jQuery("#pageContent").live("mouseover", function(){ |
| | | if(jQuery(".panel select").css("display") != "none"){ |
| | | jQuery(".panel select").combobox(); |
| | | jQuery("body").live("mouseover", function(){ |
| | | if(jQuery(".panel .list td select").css("display") != "none"){ |
| | | jQuery(".panel .list td select").combobox(); |
| | | } |
| | | }); |
| | | </script> |