@@ -522,9 +522,9 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
522
522
// the least long array to avoid out-of-bounds reads
523
523
for ( var match_index = 0 ; match_index < Math . min ( matches . length , unmarked_matches . length ) ; match_index ++ )
524
524
{
525
- var linked = link_start + $html ( unmarked_matches [ match_index ] ) + link_class
526
- + matches [ match_index ] . swapHighlightMarkers ( )
527
- + link_end ;
525
+ var linked = link_start + $html ( unmarked_matches [ match_index ] ) + link_class
526
+ + matches [ match_index ] . swapHighlightMarkers ( )
527
+ + link_end ;
528
528
529
529
// switch out the plain noderef for a doc details link on that same noderef
530
530
displayed_value = displayed_value . replace ( matches [ match_index ] , linked ) ;
@@ -616,7 +616,7 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
616
616
] ,
617
617
metaFields :
618
618
{
619
- totalRecords : "count"
619
+ totalRecords : "count"
620
620
}
621
621
} ;
622
622
@@ -893,9 +893,9 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
893
893
// also make sure we've gone through the entire input string, even if this current portion does not match
894
894
var new_remainder = remainder . substr ( remaining_match [ 0 ] . length == 0 ? 1 : remaining_match . index + remaining_match [ 0 ] . length ) ;
895
895
if ( ! new_remainder || remainder == new_remainder )
896
- break ;
896
+ break ;
897
897
else
898
- remainder = new_remainder ;
898
+ remainder = new_remainder ;
899
899
900
900
// for the next iteration
901
901
previous_remaining_match = remaining_match ;
@@ -909,16 +909,16 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
909
909
// We've moved across the whole string. Go back and replace what we've deferred, if any
910
910
for ( var deferred_index = 0 ; deferred_index < deferred_matching_strings . length ; deferred_index ++ )
911
911
{
912
- if ( indexOfWrapper ( matching_strings , deferred_matching_strings [ deferred_index ] ) == - 1 )
913
- {
914
- var deferred_regex = new RegExp ( deferred_matching_strings [ deferred_index ] . sanitizeforHighlighting ( ) , "g" )
915
- field_value = field_value . replace ( deferred_regex , highlight_open_marker + deferred_matching_strings [ deferred_index ] + highlight_close_marker ) ;
916
- }
912
+ if ( indexOfWrapper ( matching_strings , deferred_matching_strings [ deferred_index ] ) == - 1 )
913
+ {
914
+ var deferred_regex = new RegExp ( deferred_matching_strings [ deferred_index ] . sanitizeforHighlighting ( ) , "g" )
915
+ field_value = field_value . replace ( deferred_regex , highlight_open_marker + deferred_matching_strings [ deferred_index ] + highlight_close_marker ) ;
916
+ }
917
917
}
918
918
919
919
// eliminate potential useless successive close open and open close markers
920
- field_value = field_value . replace ( new RegExp ( highlight_close_marker + highlight_open_marker , "g" ) , "" )
921
- . replace ( new RegExp ( highlight_open_marker + highlight_close_marker , "g" ) , "" ) ;
920
+ field_value = field_value . replace ( new RegExp ( highlight_close_marker + highlight_open_marker , "g" ) , "" )
921
+ . replace ( new RegExp ( highlight_open_marker + highlight_close_marker , "g" ) , "" ) ;
922
922
923
923
// marker block elision : eliminate nested markers, that are already enclosed in a larger mark block
924
924
// replace the field value with the elided version
@@ -966,20 +966,20 @@ if (typeof Extras.dashlet == "undefined" || !Extras.dashlet)
966
966
*/
967
967
refreshDataTable_SearchWithinResults : function AuditApplication_refreshDataTable_searchWithinResults ( )
968
968
{
969
- // get state for the new request. restate how the sorting order the data comes from straight from the datasource
970
- var state = this . dataTable . getState ( ) ;
969
+ // get state for the new request. restate how the sorting order the data comes from straight from the datasource
970
+ var state = this . dataTable . getState ( ) ;
971
971
state . sortedBy = { key :'id' , dir :YAHOO . widget . DataTable . CLASS_DESC } ;
972
972
973
- // Get filtered data
974
- // If the search box is not empty, we add an internal query param that will not be used by the server,
975
- // but that we will use in doBeforeCallback to further refine and filter results that do not match the box value
976
- this . entriesDataSource . sendRequest ( this . searchBoxContainer . value ? "&searchWithinResults=" + this . searchBoxContainer . value : "" ,
977
- {
978
- success : this . dataTable . onDataReturnInitializeTable ,
979
- failure : this . dataTable . onDataReturnInitializeTable ,
980
- scope : this . dataTable ,
981
- argument : state
982
- } ) ;
973
+ // Get filtered data
974
+ // If the search box is not empty, we add an internal query param that will not be used by the server,
975
+ // but that we will use in doBeforeCallback to further refine and filter results that do not match the box value
976
+ this . entriesDataSource . sendRequest ( this . searchBoxContainer . value ? "&searchWithinResults=" + this . searchBoxContainer . value : "" ,
977
+ {
978
+ success : this . dataTable . onDataReturnInitializeTable ,
979
+ failure : this . dataTable . onDataReturnInitializeTable ,
980
+ scope : this . dataTable ,
981
+ argument : state
982
+ } ) ;
983
983
} ,
984
984
985
985
lastButtonRefreshEventTimeStamp : null ,
0 commit comments