File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,23 @@ $(".ui-clear-history").click(function () {
266
266
} ) ;
267
267
268
268
$ ( ".ui-refresh-history" ) . click ( function ( ) {
269
+ var lastTags = $ ( ".ui-use-tags" ) . select2 ( 'val' ) ;
270
+ $ ( ".ui-use-tags" ) . select2 ( 'val' , '' ) ;
271
+ historyList . filter ( ) ;
272
+ var lastKeyword = $ ( '.search' ) . val ( ) ;
273
+ $ ( '.search' ) . val ( '' ) ;
274
+ historyList . search ( ) ;
275
+
269
276
resetCheckAuth ( ) ;
270
277
historyList . clear ( ) ;
271
- parseHistory ( historyList , parseHistoryCallback ) ;
278
+ parseHistory ( historyList , function ( list , notehistory ) {
279
+ parseHistoryCallback ( list , notehistory ) ;
280
+ $ ( ".ui-use-tags" ) . select2 ( 'val' , lastTags ) ;
281
+ $ ( ".ui-use-tags" ) . trigger ( 'change' ) ;
282
+ historyList . search ( lastKeyword ) ;
283
+ $ ( '.search' ) . val ( lastKeyword ) ;
284
+ checkHistoryList ( ) ;
285
+ } ) ;
272
286
} ) ;
273
287
274
288
$ ( ".ui-logout" ) . click ( function ( ) {
You can’t perform that action at this time.
0 commit comments