File tree Expand file tree Collapse file tree 5 files changed +68
-16
lines changed Expand file tree Collapse file tree 5 files changed +68
-16
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,8 @@ $(function() {
311
311
model . attributes . favorited = ! model . attributes . favorited ;
312
312
view . render ( ) ;
313
313
314
+ $ ( "#activity-picker .search-wrapper input" ) . val ( "" ) . trigger ( "keyup" ) ;
315
+
314
316
$ . ajax ( {
315
317
url : $ ( "#activity-list" ) . data ( "toggle-favorite-endpoint" ) ,
316
318
type : "POST" ,
Original file line number Diff line number Diff line change @@ -509,10 +509,18 @@ <h4>
509
509
</ div >
510
510
{% endif %}
511
511
512
- < h5 class ="sticky-header favorites-header "> Favorites</ h5 >
513
- < ul class ="favorite-activities "> </ ul >
514
- < h5 class ="sticky-header all-header "> All</ h5 >
515
- < ul class ="all-activities "> </ ul >
512
+ < h5 class ="sticky-header favorites-header " data-header ="favorites-header ">
513
+ Favorites
514
+ </ h5 >
515
+ < ul class ="favorite-activities " data-header ="favorites-header "> </ ul >
516
+ < h5 class ="sticky-header special-header " data-header ="special-header ">
517
+ Special
518
+ </ h5 >
519
+ < ul class ="special-activities " data-header ="special-header "> </ ul >
520
+ < h5 class ="sticky-header all-header " data-header ="all-header ">
521
+ All
522
+ </ h5 >
523
+ < ul class ="all-activities " data-header ="all-header "> </ ul >
516
524
< ul class ="search-noresults ">
517
525
< li >
518
526
< span class ="activity-name ">
Original file line number Diff line number Diff line change @@ -358,15 +358,33 @@ <h3>
358
358
< span >
359
359
< input type ="search " placeholder ="Search names, sponsors, rooms... " disabled >
360
360
</ span >
361
+ < h5 class ="search-header ">
362
+ Search Results< a class ="button small-button clear-button "> Clear</ a >
363
+ </ h5 >
361
364
</ div >
362
365
< div class ="backbtn ">
363
366
< i class ="fa fa-chevron-left "> </ i >
364
367
</ div >
365
368
< div id ="activity-list " data-toggle-favorite-endpoint ="{% url 'eighth_toggle_favorite' %} ">
366
- < h5 class ="sticky-header favorites-header "> Favorites</ h5 >
367
- < ul class ="favorite-activities "> </ ul >
368
- < h5 class ="sticky-header "> All</ h5 >
369
- < ul class ="all-activities "> </ ul >
369
+ < h5 class ="sticky-header favorites-header " data-header ="favorites-header ">
370
+ Favorites
371
+ </ h5 >
372
+ < ul class ="favorite-activities " data-header ="favorites-header "> </ ul >
373
+ < h5 class ="sticky-header special-header " data-header ="special-header ">
374
+ Special
375
+ </ h5 >
376
+ < ul class ="special-activities " data-header ="special-header "> </ ul >
377
+ < h5 class ="sticky-header all-header " data-header ="all-header ">
378
+ All
379
+ </ h5 >
380
+ < ul class ="all-activities " data-header ="all-header "> </ ul >
381
+ < ul class ="search-noresults ">
382
+ < li >
383
+ < span class ="activity-name ">
384
+ No results found. Try your search again.
385
+ </ span >
386
+ </ li >
387
+ </ ul >
370
388
</ div >
371
389
< div id ="activity-detail " data-bid ="{% for b in blocks %}{{ b.id }}{% if not forloop.last %},{% endif %}{% endfor %} " data-uid ="{{ user.id }} " data-signup-endpoint ="{% url 'eighth_multi_signup' %} ">
372
390
< div class ="empty-state ">
Original file line number Diff line number Diff line change @@ -437,15 +437,33 @@ <h4>
437
437
< span >
438
438
< input type ="search " placeholder ="Search names, sponsors, rooms... " disabled >
439
439
</ span >
440
+ < h5 class ="search-header ">
441
+ Search Results< a class ="button small-button clear-button "> Clear</ a >
442
+ </ h5 >
440
443
</ div >
441
444
< div class ="backbtn ">
442
445
< i class ="fa fa-chevron-left "> </ i >
443
446
</ div >
444
447
< div id ="activity-list " data-toggle-favorite-endpoint ="{% url 'eighth_toggle_favorite' %} ">
445
- < h5 class ="sticky-header favorites-header "> Favorites</ h5 >
446
- < ul class ="favorite-activities "> </ ul >
447
- < h5 class ="sticky-header "> All</ h5 >
448
- < ul class ="all-activities "> </ ul >
448
+ < h5 class ="sticky-header favorites-header " data-header ="favorites-header ">
449
+ Favorites
450
+ </ h5 >
451
+ < ul class ="favorite-activities " data-header ="favorites-header "> </ ul >
452
+ < h5 class ="sticky-header special-header " data-header ="special-header ">
453
+ Special
454
+ </ h5 >
455
+ < ul class ="special-activities " data-header ="special-header "> </ ul >
456
+ < h5 class ="sticky-header all-header " data-header ="all-header ">
457
+ All
458
+ </ h5 >
459
+ < ul class ="all-activities " data-header ="all-header "> </ ul >
460
+ < ul class ="search-noresults ">
461
+ < li >
462
+ < span class ="activity-name ">
463
+ No results found. Try your search again.
464
+ </ span >
465
+ </ li >
466
+ </ ul >
449
467
</ div >
450
468
< div id ="activity-detail " data-bid ="{{ active_block.id }} " data-uid ="{{ user.id }} " data-signup-endpoint ="{% url 'eighth_signup' %} ">
451
469
< div class ="empty-state ">
Original file line number Diff line number Diff line change @@ -407,18 +407,24 @@ <h4>
407
407
< input type ="search " placeholder ="Search names, sponsors, rooms... " disabled >
408
408
</ span >
409
409
< h5 class ="search-header ">
410
- Search Results< a class =' button small-button clear-button ' > Clear</ a >
410
+ Search Results< a class =" button small-button clear-button " > Clear</ a >
411
411
</ h5 >
412
412
</ div >
413
413
< div class ="backbtn ">
414
414
< i class ="fa fa-chevron-left "> </ i >
415
415
</ div >
416
416
< div id ="activity-list " data-toggle-favorite-endpoint ="{% url 'eighth_toggle_favorite' %} ">
417
- < h5 class ="sticky-header favorites-header " data-header ="favorites-header "> Favorites</ h5 >
417
+ < h5 class ="sticky-header favorites-header " data-header ="favorites-header ">
418
+ Favorites
419
+ </ h5 >
418
420
< ul class ="favorite-activities " data-header ="favorites-header "> </ ul >
419
- < h5 class ="sticky-header special-header " data-header ="special-header "> Special</ h5 >
421
+ < h5 class ="sticky-header special-header " data-header ="special-header ">
422
+ Special
423
+ </ h5 >
420
424
< ul class ="special-activities " data-header ="special-header "> </ ul >
421
- < h5 class ="sticky-header all-header " data-header ="all-header "> All</ h5 >
425
+ < h5 class ="sticky-header all-header " data-header ="all-header ">
426
+ All
427
+ </ h5 >
422
428
< ul class ="all-activities " data-header ="all-header "> </ ul >
423
429
< ul class ="search-noresults ">
424
430
< li >
You can’t perform that action at this time.
0 commit comments