ucsb-cs56-w20 / mapache-search

https://mapache-search-qa.herokuapp.com/
2 stars 3 forks source link

Add functionality to dropdown items #270

Closed jay-red closed 4 years ago

jay-red commented 4 years ago

Currently, clicking on any dropdown item does nothing. We need to actually make a tag dropdown item add a tag to the search result.

jay-red commented 4 years ago

To accomplish this, we will modify the SearchController.java in order to add a handler for updating the tags. Also, results.js will need modifications to send an AJAX request to the server with the required data for updating the tags (ID of the search result, the tag name, etc.). There will probably be some styling changes in results.css, to be able to display which tags were already selected. The internet ResultVoteWrapper of SearchController.java will need to be modified to have the tags for a specific result.