Bug 8401 : Highlighting of search terms in preference causes loss of data
To test: 1/ Go to system preferences 2/ Go to SCOUserCSS 3/ Add #self 4/ Search for self 5/ Open SCOUserCSS 6/ Note it now contains only # (Do not click save) 7/ Apply the patch 8/ Refresh the page, and check SCOUserCSS and note it now says #self 9/ Rejoice! Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Works nicely and passes all tests. Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
This commit is contained in:
parent
9da3b4b099
commit
09ec1bef38
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ $( document ).ready( function () {
|
||||||
var words = to_highlight.split( ' ' );
|
var words = to_highlight.split( ' ' );
|
||||||
$( '.prefs-tab table' ).find( 'td, th' ).not( '.name-cell' ).each( function ( i, td ) {
|
$( '.prefs-tab table' ).find( 'td, th' ).not( '.name-cell' ).each( function ( i, td ) {
|
||||||
$.each( words, function ( i, word ) { $( td ).highlight( word ) } );
|
$.each( words, function ( i, word ) { $( td ).highlight( word ) } );
|
||||||
} ).find( 'option' ).removeHighlight();
|
} ).find( 'option, textarea' ).removeHighlight();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( search_jumped ) {
|
if ( search_jumped ) {
|
||||||
|
|
Loading…
Reference in a new issue