File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 191
191
} )
192
192
. then ( ( ) => {
193
193
if ( searchBar . textContent === '' ) {
194
- removeClassHebrew ( ) ;
194
+ // removeClassHebrew();
195
195
}
196
196
} ) ;
197
197
253
253
} ) ;
254
254
255
255
$ ( searchBar ) . on ( 'awesomplete-select' , ( e , target ) => {
256
- let text ;
257
- if ( target !== undefined ) {
258
- text = target . textContent ;
259
- } else {
260
- text = document . querySelector ( 'li[aria-selected="true"]' ) . textContent
261
- }
256
+ if ( ! e . isDefaultPrevented ( ) ) {
257
+ let text ;
258
+ if ( target !== undefined ) {
259
+ text = target . textContent ;
260
+ } else {
261
+ text = document . querySelector ( 'li[aria-selected="true"]' ) . textContent
262
+ }
262
263
263
- e . preventDefault ( ) ;
264
- searchBar . textContent = text ;
264
+ e . preventDefault ( ) ;
265
+ searchBar . textContent = text ;
265
266
266
- main . search ( text ) ;
267
- list . innerHTML = '' ;
267
+ main . search ( text ) ;
268
+ list . innerHTML = '' ;
269
+ }
268
270
} ) ;
269
271
270
272
function addClassHebrew ( ) {
300
302
}
301
303
302
304
303
- $ ( '.url' ) . focus ( addClassHebrew ) . on ( 'input' , ( addClassHebrew ) ) . on ( 'input' , ( addClassHebrew ) ) ;
304
- $ ( '.url' ) . focus ( removeClassHebrew ) . on ( 'input' , ( removeClassHebrew ) ) . on ( 'input' , ( removeClassHebrew ) ) ;
305
+ // $('.url').focus(addClassHebrew).on('input', (addClassHebrew)).on('input', (addClassHebrew));
306
+ // $('.url').focus(removeClassHebrew).on('input', (removeClassHebrew)).on('input', (removeClassHebrew));
305
307
306
308
</ script >
307
309
You can’t perform that action at this time.
0 commit comments