aboutsummaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeLines
* Call two more set up functions on report pull.Matthew Somerville2016-07-13-1/+2
| | | | | This is so form valdation and the 'log in by email' button are set up appropriately if pulled in via JavaScript.
* Don't set up multiple handlers on drawers.Matthew Somerville2016-07-13-1/+3
|
* Fix issues with sub_map_links and JS navigation.Matthew Somerville2016-07-12-8/+18
| | | | | Have 'Get updates' displaying correctly on a report page again, fix some navigational problems.
* Fix going back to /reports page on mobile.Matthew Somerville2016-07-12-9/+13
| | | | | | Record the original page we're at, so that when we go back to it, we go back to the right one (the only difference between /around and /reports being the full screen map of /around).
* Zoom into map after second click on marker.Matthew Somerville2016-07-12-0/+7
|
* Make sure mobile map scrolled into view and fixed.Matthew Somerville2016-07-12-2/+12
| | | | | This prevents scrolling when we're on the full screen map, and makes sure the map is back in view when it is shown.
* Only create popstate event after page load.Matthew Somerville2016-07-12-28/+34
| | | | | Some older browers will fire a popstate event at page load, which can cause an issue if we assume it's only fired due to a history event.
* Fix a few JavaScript issues with reports pages.Matthew Somerville2016-07-12-1/+7
| | | | | | | Don't stringify pin problem ID, as get_marker_by_id assumes it will be an integer; only activate the bounding box strategy if it exists; make sure a refresh of the markers happens when going back to the list; set the Back link on a pulled-in report to the current URL.
* Tweak WMTS JavaScript to match merged branch.Matthew Somerville2016-07-11-16/+13
| | | | Use $.each rather than .forEach.
* Merge branch '1351-report-list-ajax'Matthew Somerville2016-07-11-1488/+1771
|\
| * [fixmystreet.com] Update share buttons to be linksMatthew Somerville2016-07-11-4/+15
| | | | | | | | | | Having them as SDK-included buttons causes issues with the ajax report pull-ins, plus Firefox doesn't like them being hidden.
| * Merge two fixmystreet.js file.Matthew Somerville2016-07-11-208/+201
| |
| * Add history polyfill for <=IE9.Matthew Somerville2016-07-11-1/+38
| |
| * Fix map page popstate / mobile nav menu bugZarino Zappia2016-07-11-1/+15
| | | | | | | | | | | | | | | | | | | | | | Previously, pressing the mobile menu icon would change the location hash, which fired a history popstate event with an empty state object, causing trouble for our map page JavaScript. Now, pressing the mobile menu icon triggers a pushState, instead of changing the location hash. This means our map page popstate logic is unaffected, but mobile users can still use their browser's Back button to escape out of the mobile menu.
| * Move to using pushState for new report.Zarino Zappia2016-07-11-82/+96
| | | | | | | | | | Update the URL whenever location of pin is updated (first time, drag, or reclick), make sure it works when clicking back.
| * Fix top of content display if scrolled previously.Matthew Somerville2016-07-11-1/+2
| |
| * Load in report details on around page via ajax.Zarino Zappia2016-07-11-37/+270
| | | | | | | | | | | | | | | | | | | | | | Include URL changing, using history.pushState. Show a larger marker icon for the selected report. Make sure title is updated, and correct sub_map_links are shown. The /report/new template is now wrapped in a <div id="side-form"> rather than <div id="side"> for consistency with the /around page, which keeps display_all_reports_in_area() simpler, because it can always assume "#side" means "list of reports".
| * Simplify "rap-notes" visibility togglingZarino Zappia2016-07-11-44/+42
| | | | | | | | | | On mobile, the notes in `#report-a-problem-sidebar` are hidden by default, and can be toggled using the `.rap-notes-trigger`.
| * Edge case fixes for window resizes mid process.Matthew Somerville2016-07-11-3/+3
| |
| * Only match the actual ID, not same-ending others.Matthew Somerville2016-07-11-2/+2
| |
| * Increase opacity a bit on non-hovered pins.Matthew Somerville2016-07-11-1/+1
| |
| * Tidy up JavaScript functions.Matthew Somerville2016-07-11-1231/+1203
| | | | | | | | Split big functions into smaller more descriptive ones.
| * Move most JavaScript mobile map changes to CSS.Zarino Zappia2016-07-01-36/+46
| |
* | [East Herts] Cobranded frontendDave Arter2016-07-08-0/+317
| | | | | | | | For mysociety/FixMyStreet-Commercial#773.
* | [Zurich] Use new LV95/CH1903+ geocoder and base map tilesDave Arter2016-07-07-255/+203
| | | | | | | | | | | | | | | | | | | | | | - Use new `getLocation95` method for geocoding addresses - Replace Coordinates::CH1903 with Coordinates::CH1903Plus - Refactor Map::Zurich to use WMTSBase instead of duplicating code - Slightly refactor map templates to make using custom WMTS tiles easier - Use correct sizes for marker pins on maps Closes mysociety/FixMyStreet-Commercial#769. Closes mysociety/FixMyStreet-Commercial#768.
* | [Oxfordshire] Use relative image paths in CSS.Matthew Somerville2016-07-06-13/+13
| |
* | Remove need to customise OpenLayers built script.Matthew Somerville2016-07-04-366/+451
| | | | | | | | | | This also allows the map to work in a proxied admin. Upgrade Angus OL to master branch code.
* | Make sure map JS works through an admin proxy.Matthew Somerville2016-07-04-12/+9
| | | | | | | | | | Tidy up use of absolute URLs when in the admin. Have the 404 handler spot static files in admin as a fallback.
* | Use static files for validation_rules.js.Matthew Somerville2016-07-04-0/+13
|/ | | | | No need for this to be generated via a template, it only differs occasionally by cobrand.
* Merge branch '1347-fold-back-zurich'Matthew Somerville2016-06-29-18/+42
|\
| * Improve admin report edit page.Matthew Somerville2016-06-29-18/+42
| | | | | | | | | | Show map, break into two columns, fix display of sent time after clicking "Mark as sent", tidy up labels.
* | [Harrogate] Update to match harrogate.gov.uk designDave Arter2016-06-28-121/+842
| | | | | | | | Closes mysociety/FixMyStreet-Commercial#779
* | Reinstate missing margin before reporting form email inputZarino Zappia2016-06-24-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | `.form-box--logged-in-name` has no preceding heading, which meant the grey box background was colliding with whatever content happened to go before it. We add some margin, and while we’re at it, remove the extra margin-top on first-child labels (unnecessary, since .form-boxes have their own padding) and tidy up the syntax of the .form-box rule set. Fixes #1418.
* | Remove default box-shadow from .content and asideZarino Zappia2016-06-24-73/+24
|/ | | | | | | Fixes #1419. We also standardize on using `@include box-shadow()` where possible, and clearing out lots of now unnecessary box-shadow resets.
* [Zurich] Fix admin report page with base changes.Matthew Somerville2016-06-22-4/+12
| | | | Add missing class on updates.
* Patch Dropzone to correctly orient preview images.Matthew Somerville2016-06-20-2/+190
| | | | | | Include a patch file, applied to Dropzone as of version e524e03c, that also includes our previous Opera patch from 445e9a3d. The new minified file is our cut-down exif.js plus the patched dropzone.js.
* [Bristol] Use BCC's base map tilesDave Arter2016-06-17-0/+180
| | | | | | | | | This refactors the Map::Zurich module into something that makes it easier to use custom map tiles for a cobrand. This also includes some refactoring of the JS & map templates to make it easier to use a custom WMTS base map in future cobrands.
* [Bristol] Bristol City Council cobrand frontendDave Arter2016-06-17-0/+6714
| | | | For mysociety/FixMyStreet-Commercial#766.
* Merge branch 'drop-ie6-fix-ie7'Matthew Somerville2016-06-17-203/+35
|\
| * Fix display in IE7, including front page text.Matthew Somerville2016-06-15-0/+1
| | | | | | | | | | .tablewrapper was sometimes losing its background, it needs to be given hasLayout.
| * Remove most IE8 special cases.Matthew Somerville2016-06-15-60/+12
| | | | | | | | | | | | Document the couple that are left, and fix the display of the logo with a simpler positioning/ less overriding. Drop a needless usage of 'rem' to make things a bit easier there too.
| * Remove all IE6 special cases.Matthew Somerville2016-06-15-144/+23
| |
* | Don't update the map pins if a new report started.Matthew Somerville2016-06-17-0/+11
| |
* | [fixmystreet.com] Fix broken goodies CSS.Matthew Somerville2016-06-15-4/+8
|/ | | | Stop sidebar overlapping footer, and giving footer heading a top border.
* Fix display of close arrow/cross when drawer open.Matthew Somerville2016-06-08-12/+20
| | | | | The 'cross' at mobile widths was not displaying, and the icon was not changing to a down arrow at larger widths.
* Move some cobrands into separate repository.Matthew Somerville2016-06-08-255/+0
|
* Update copyright year shown on OS & Bing mapsDave Arter2016-06-07-2/+2
|
* [East Sussex] Improve header CSS.Matthew Somerville2016-06-07-35/+6
| | | | | Remove quite a bit of unnecessary CSS that was not actually helping with display.
* Remove some unused CSS.Matthew Somerville2016-06-07-75/+0
|
* Use ::after to fix map sidebar bottom padding.Matthew Somerville2016-06-07-6/+17
| | | | | | This improves upon the previous commit to work with whatever contents the map sidebar has (e.g. the list on an around page was also being cut off before the end).