aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/duplicates.js
Commit message (Collapse)AuthorAgeLines
* Only one duplicate call in progress at once.Matthew Somerville2020-03-31-1/+12
| | | | | Without this check, it is possible for calls to overlap and end up with a situation whereby both the duplicate list and the form are hidden.
* Don’t highlight duplicate pins on mobileDave Arter2020-01-31-9/+15
| | | | | The presence of the ‘mouseenter’ handler meant two taps were required to expand the report preview.
* Display inline map for duplicate suggestions on mobileDave Arter2020-01-31-0/+4
| | | | For #2668.
* Fix issue loading inspector duplicates on /around.Matthew Somerville2019-10-15-3/+6
| | | | | | As there are two category drop-downs in this situation (one in the hidden reporting form, one in the inspect form), the correct entry needs to be specified.
* Only show duplicate suggestions once per category change on mobileDave Arter2019-10-07-2/+22
|
* Dismiss duplicate selection UI when returning to map on mobileDave Arter2019-10-07-0/+6
|
* Merge branch 'issues/commercial/1480-asset-duplicate-interaction'Matthew Somerville2019-08-08-1/+17
|\
| * Have duplicate suggestion & assets coexist better.Matthew Somerville2019-08-07-1/+17
| |
* | Hide category extras when dupe suggestions shown.Matthew Somerville2019-08-07-0/+2
|/
* Improve map JavaScript defensiveness.Matthew Somerville2019-07-10-0/+6
| | | | | Add more checking for map things so e.g. on a skipped map page we stop getting JavaScript errors given there is no map present.
* Have duplicate and asset messages work together.Matthew Somerville2019-05-28-2/+13
|
* Do not focus on title on duplicate list removal.Matthew Somerville2019-05-28-14/+3
| | | | | Sometimes this can be a long way down, if e.g. extra Open311 questions above.
* Tidy up duplicate fetching code.Matthew Somerville2019-03-28-26/+8
| | | | | | Run immediately, not onready, so the category change listener is in place; listen to a better event, removing need for a debouncer; don't look up if empty category.
* Listen for all inspector form duplicate events.Matthew Somerville2019-03-06-2/+2
| | | | | | The form may be brought in via JS, so we have to add an event to something that will always be there (or alternatively set up when pulled in, which was the old pre-duplicates.js behaviour).
* Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-0/+206
The previously staff-only fixmystreet.set_up.manage_duplicates() has been promoted from staff.js to its own file so that we can use it to display the duplicate suggestions on the `/report/new` form. render_duplicate_list (the old refresh_duplicate_list) no longer filters or slices the reports_list returned by the ajax call, since it turns out the server handles all of that (`sub _nearby_json` in `Report.pm` and `sub nearby` in `Nearby.pm`). Since the expandable list items include the "fancybox" image previews, the fancybox CSS now has to be included in the `/report/new` page head, hence the addition of "photo-js.html" in `fill_in_details.html`. The “Get updates” flow reuses the same JavaScript that handles the submission of the "Get updates" drawer at the bottom of around pages.