Changeset 2037
- Timestamp:
- 11/04/2015 04:59:09 PM (9 years ago)
- Location:
- sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/js/rosetta-roles.js
r1786 r2037 131 131 // @uses RegExp 132 132 search: function( term ) { 133 var match , name;133 var match; 134 134 135 135 // Escape the term string for RegExp meta characters … … 143 143 // Find results 144 144 this.each( function( project ) { 145 name = project.get( 'name' ); 146 project.set( 'isVisible', match.test( name ) ); 147 }); 148 }, 145 var haystack = _.union( project.get( 'name' ), project.get( 'slug' ) ); 146 project.set( 'isVisible', match.test( haystack ) ); 147 }); 148 }, 149 150 comparator: function( project ) { 151 return - project.get( 'checked' ); 152 } 149 153 }); 150 154 -
sites/trunk/global.wordpress.org/public_html/wp-content/mu-plugins/roles/rosetta-roles.php
r2001 r2037 221 221 */ 222 222 public function enqueue_scripts() { 223 wp_enqueue_script( 'rosetta-roles', plugins_url( '/js/rosetta-roles.js', __FILE__ ), array( 'jquery', 'wp-backbone' ), ' 2', true );223 wp_enqueue_script( 'rosetta-roles', plugins_url( '/js/rosetta-roles.js', __FILE__ ), array( 'jquery', 'wp-backbone' ), '3', true ); 224 224 } 225 225 … … 656 656 657 657 $_projects = $wpdb->get_results( " 658 SELECT id, name, parent_project_id 658 SELECT id, name, parent_project_id, slug 659 659 FROM translate_projects 660 660 WHERE id NOT IN( " . implode( ',', $ignore_project_ids ) . " )
Note: See TracChangeset
for help on using the changeset viewer.