References #40 and #35
Changed js so that the "deleted" option is cleared and the element hidden from the user
Changed controller actions so that any empty strings are removed from the list of IssueOptions
Added a check in the controller actions to return an error message if less than 2 options are submitted
Also, some cleanup:
Created a partial view for the issue option field
Used jQuery to load that partial view when Add Option is clicked
Moved the remove function to site.js for less duplication across pages
References #40 and #35 Changed js so that the "deleted" option is cleared and the element hidden from the user Changed controller actions so that any empty strings are removed from the list of IssueOptions Added a check in the controller actions to return an error message if less than 2 options are submitted
Also, some cleanup: Created a partial view for the issue option field Used jQuery to load that partial view when Add Option is clicked Moved the remove function to site.js for less duplication across pages