aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/js
Commit message (Collapse)AuthorAgeLines
* [Northamptonshire] restrict title to 120 charactersStruan Donald2019-04-09-1/+4
| | | | | | Prevent people from using very long titles. Fixes mysociety/fixmystreet-commercial#1344
* Duplicate suggestion UI when reporting problems.Zarino Zappia2019-02-25-0/+3
| | | | | | | | | | | | | | | | | | 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.
* Reword maximum number of images error message.Matthew Somerville2019-02-21-1/+1
|
* [UK] council specific javascript validationStruan Donald2018-11-26-1/+4
| | | | | | | | | use the bodies array of reporting_data to check if there is council specific javascript validation and, if so, load that into the JS validation rules. This does mean we reset the validation rules each time you select a category.
* Remove need for category_extras ajax call.Matthew Somerville2018-08-28-0/+2
| | | | | | Add by_category output to the /report/new/ajax call, containing all the data that /report/new/category_extras returns for one category. Then alter the JS to use that data immediately when needed.
* "Report a problem here" button in nav when viewing a locationZarino Zappia2018-08-07-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #2016. When you load a page that includes either a problem report, or is centered on a location, the "Report a problem" button in the nav bar (that normally takes you to the homepage) becomes a "Report a(nother) problem here" button, that leads directly to the new report form for the location in question. On full map pages (/around and any /report/<id> pages loaded via it) the reporting form will be rendered client-side, avoiding a full page reload. On pages lacking the full map (eg: missing fixmystreet.bbox_strategy), namely /reports/<area> and any /report/<id> page that hasn’t been client-side loaded via /around, we fall back to a server-side page load. Finally, as you’d expect, the text and URL for the button dynamically update as you move around the map, or switch between the different client-side states of the reporting flow. We also hide the button entirely when you’re reporting a problem, which was something suggested a long time ago.
* Add length/common password checking.Matthew Somerville2018-02-06-0/+6
|
* Show geolocate link more by default.Matthew Somerville2017-11-07-1/+0
|
* Add collapse filter to translation JavaScript.Matthew Somerville2017-10-25-0/+2
| | | | This removes unnecessary whitespace to reduce the output size.
* Add ability to log in on /auth via text.Matthew Somerville2017-09-30-0/+4
| | | | A confirmation code is sent via Twilio to be entered on the site.
* Use standard JS translation for show/hide pins.Matthew Somerville2017-08-03-0/+3
|
* Update translations with new source strings.Matthew Somerville2017-07-18-1/+1
| | | | Plus a few new ca_ES strings.
* Improve translatability of various pages.Dave Arter2017-03-30-1/+19
| | | | | | | | | | | | | This commit makes the following parts of the site translatable: - Social login buttons - Moderation UI - Offline glitch page & offline caching UI - Dashboard It also fixes a bug in the nget parser, stops some Oxfordshire bits being translated for the moment, and brings the translation file up to date.
* Add buttons to resize maps on report pagespezholio2017-03-02-0/+3
| | | | | | | | This improves usability on mobile devices, allowing users to pan around the problem and see the area in more detail. I've also changed the CSS around a bit, so we can use the `map-fullscreen` class in other places.
* Add inspector report detail viewDave Arter2016-09-06-0/+2
| | | | | | | | | | | | | Users with the `report_inspect` permission can click a new 'inspect' button on a report page to input more detailed problem information into a new form that appears in a column alongside the report detail. - Inspector data is stored in problem's 'extra' field - Report category/state can be edited - Location can be changed by dragging the pin or HTML5 geolocation (Factored out Zurich admin pin drag into own function) For mysociety/fixmystreetforcouncils#22
* Use separate mobile banner HTML to simplify changeMatthew Somerville2016-08-16-4/+1
|
* Use static files for validation_rules.js.Matthew Somerville2016-07-04-5/+0
| | | | | No need for this to be generated via a template, it only differs occasionally by cobrand.
* Version 1.8.2.v1.8.2Matthew Somerville2016-05-03-1/+1
|
* Add login by Facebook when updating.Matthew Somerville2016-01-22-2/+1
| | | | Makes the flow more like new reporting.
* Add login by Facebook when reporting.Matthew Somerville2016-01-22-1/+0
|
* Add multiple photo upload support.Zarino Zappia2015-12-16-0/+5
| | | | | | | | | | Three file inputs, progressively enhanced with dropzone. This moves the photo input higher up, so that photos can upload while you're filling out the form. It standardises and improves photo error handling. [fixmystreet.com] Guidance for what photos should and shouldn’t include.
* Add Hybrid map toggle option to Google Maps view.Matthew Somerville2015-01-19-0/+3
|
* Rename 'default' web directory to 'base'.Matthew Somerville2014-07-08-0/+55
This should reduce confusion with the Default cobrand and override order.