Commit 7dc6037b authored by xaver's avatar xaver
Browse files

empty value better see, ^Cigger is mouseover body (still better after ajax...

empty value better see, ^Cigger is mouseover body (still better after ajax request), css fixes (chromium,FF,Opera,rekonq,IE), 1 sprite image in gray for icons
parent 0c14c699
...@@ -78,19 +78,17 @@ ...@@ -78,19 +78,17 @@
} }
}); });
// jQuery(document).ready( function(){
//
// });
(function( $ ) { (function( $ ) {
$.widget( "ui.combobox", { $.widget( "ui.combobox", {
_create: function() { _create: function() {
var self = this, var self = this,
oldWidth = this.element.width(),
select = this.element.hide(), select = this.element.hide(),
selected = select.children( ":selected" ), selected = select.children( ":selected" ),
value = selected.val() ? selected.text() : ""; value = selected.val() ? selected.text() : "";
var input = this.input = $( "<input>" ) var input = this.input = $( "<input>" )
.insertAfter( select ) .insertAfter( select )
.width( oldWidth )
.val( value ) .val( value )
.autocomplete({ .autocomplete({
delay: 0, delay: 0,
...@@ -99,7 +97,7 @@ ...@@ -99,7 +97,7 @@
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" ); var matcher = new RegExp( $.ui.autocomplete.escapeRegex(request.term), "i" );
response( select.children( "option" ).map(function() { response( select.children( "option" ).map(function() {
var text = $( this ).text(); var text = $( this ).text();
if ( this.value && ( !request.term || matcher.test(text) ) ) //if ( this.value && ( !request.term || matcher.test(text) ) )
return { return {
label: text.replace( label: text.replace(
new RegExp( new RegExp(
...@@ -183,10 +181,11 @@ ...@@ -183,10 +181,11 @@
} }
}); });
})( jQuery ); })( jQuery );
jQuery("#pageContent").live("mouseover", function(){ jQuery("body").live("mouseover", function(){
if(jQuery(".panel select").css("display") != "none"){ if(jQuery(".panel .list td select").css("display") != "none"){
jQuery(".panel select").combobox(); jQuery(".panel .list td select").combobox();
} }
}); });
</script> </script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment