File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/main/xar-resources/resources/scripts Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11$ ( document ) . on ( "ready" , function ( ) {
2+ const loginDialog = $ ( "#loginDialog" ) ;
3+ let timeout = 0 ;
4+
5+ loginDialog . modal ( {
6+ show : false
7+ } ) ;
28
39 function search ( ) {
410 const data = $ ( "#fun-query-form" ) . serialize ( ) ;
@@ -49,11 +55,6 @@ $(document).on("ready", function() {
4955 } ) ;
5056 }
5157
52- let timeout = 0 ;
53- const loginDialog = $ ( "#loginDialog" ) ;
54- loginDialog . modal ( {
55- show : false
56- } ) ;
5758 $ ( "form" , loginDialog ) . on ( "submit" , function ( ev ) {
5859 const params = $ ( this ) . serialize ( ) ;
5960 $ . ajax ( {
@@ -73,6 +74,8 @@ $(document).on("ready", function() {
7374 $ ( "#f-load-indicator" ) . hide ( ) ;
7475 $ ( "#query-field" ) . on ( "keyup" , function ( ) {
7576 const val = $ ( this ) . val ( ) ;
77+ // fixme search request is delayed by 300ms
78+ // replace with proper debounce
7679 if ( val . length > 3 ) {
7780 if ( timeout )
7881 clearTimeout ( timeout ) ;
You can’t perform that action at this time.
0 commit comments