Changeset 90442 in spip-zone
- Timestamp:
- Jun 22, 2015, 5:34:48 PM (6 years ago)
- Location:
- _plugins_/selecteur_generique/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/selecteur_generique/trunk/javascript/jquery.ui.autocomplete.html.js
r85381 r90442 13 13 14 14 function filter( array, term ) { 15 var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), 'i');15 var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" ); 16 16 return $.grep( array, function(value) { 17 return matcher.test( $( '<div/>').html( value.label || value.value || value ).text() );17 return matcher.test( $( "<div>" ).html( value.label || value.value || value ).text() ); 18 18 }); 19 19 } … … 21 21 $.extend( proto, { 22 22 _initSource: function() { 23 if ( this.options.html && $.isArray(this.options.source) ) 24 { 23 if ( this.options.html && $.isArray(this.options.source) ) { 25 24 this.source = function( request, response ) { 26 25 response( filter( this.options.source, request.term ) ); 27 26 }; 28 } 29 else 30 { 27 } else { 31 28 initSource.call( this ); 32 29 } … … 34 31 35 32 _renderItem: function( ul, item) { 36 return $( '<li><a/></li>')33 return $( "<li></li>" ) 37 34 .data( "item.autocomplete", item ) 38 .find( '<a/>' ) 39 .addClass( item.className ) 40 [ this.options.html ? "html" : "text" ]( item.label ) 41 .end() 35 .append( $( "<a></a>" )[ this.options.html ? "html" : "text" ]( item.label ) ) 42 36 .appendTo( ul ); 43 37 } -
_plugins_/selecteur_generique/trunk/paquet.xml
r89313 r90442 2 2 prefix="selecteurgenerique" 3 3 categorie="outil" 4 version="0.8.1 0"4 version="0.8.11" 5 5 etat="test" 6 6 compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset
for help on using the changeset viewer.