File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 714
714
this . $element . find ( "tr.griddly-filters:not(tr.griddly-filters-" + this . options . filterMode . toLowerCase ( ) + ")" ) . hide ( ) ;
715
715
this . $element . find ( "tr.griddly-filters-" + this . options . filterMode . toLowerCase ( ) ) . show ( ) ;
716
716
717
- this . setFilterValues ( currentFilters , true ) ;
717
+ this . setFilterValues ( currentFilters , true , true ) ;
718
718
719
719
var request2 = this . buildRequest ( ) ;
720
720
725
725
}
726
726
} ,
727
727
728
- toggleFilterMode : function ( )
728
+ toggleFilterMode : function ( noRefresh )
729
729
{
730
730
if ( this . options . allowedFilterModes . length > 1 )
731
731
{
732
- this . setFilterMode ( this . options . filterMode == "Inline" ? "Form" : "Inline" ) ;
732
+ this . setFilterMode ( this . options . filterMode == "Inline" ? "Form" : "Inline" , noRefresh ) ;
733
733
}
734
734
} ,
735
735
785
785
$ ( input [ 0 ] ) . change ( ) ;
786
786
} ,
787
787
788
- setFilterValues : function ( filters , isPatch )
788
+ setFilterValues : function ( filters , isPatch , noRefresh )
789
789
{
790
790
this . options . autoRefreshOnFilter = false ;
791
791
804
804
this . $element . trigger ( "setfilters.griddly" , filters ) ;
805
805
806
806
this . options . autoRefreshOnFilter = true ;
807
- this . refresh ( true ) ;
807
+
808
+ if ( ! noRefresh )
809
+ {
810
+ this . refresh ( true ) ;
811
+ }
808
812
} ,
809
813
810
814
resetFilterValues : function ( )
You can’t perform that action at this time.
0 commit comments