aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Remove bit of unused/needed code.Matthew Somerville2016-07-15-24/+3
|
* Check extras for all retrieved contacts.Matthew Somerville2016-07-15-12/+12
|
* 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-2/+8
| | | | | | | 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.
* Add missing 'pin.problem' attributeDave Arter2016-07-11-0/+1
| | | | | Missed this from 8a8b34, and it was causing a crash on certain /reports/ pages when trying to display the list of problems.
* 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-1537/+1804
|\
| * [fixmystreet.com] Update share buttons to be linksMatthew Somerville2016-07-11-17/+23
| | | | | | | | | | 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-209/+201
| |
| * Add history polyfill for <=IE9.Matthew Somerville2016-07-11-1/+41
| |
| * 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-95/+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-51/+282
| | | | | | | | | | | | | | | | | | | | | | 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-1240/+1215
| | | | | | | | Split big functions into smaller more descriptive ones.
| * Move most JavaScript mobile map changes to CSS.Zarino Zappia2016-07-01-36/+46
| |
* | Merge branch 'issues/commercial/500-cobrand-reporting-issues-redux'Dave Arter2016-07-08-79/+251
|\ \
| * | [UK Councils] Show all reports on cobrand /around mapDave Arter2016-07-08-13/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a concern that excluding district council reports from a two-tier council's cobrand's /around page might lead to duplicate reports or reports never being seen. This commit adds them to the map and the sidebar and displays the destination council in the report list item. Clicking the pin or the report link leads to the report on FMS.com. Reports sent to the a council other than the the active cobrand are shown as grey pins on the map, and the receiving council's name is shown in the sidebar list.
| * | Include link back to originating cobrand on fms.com reportsDave Arter2016-07-08-2/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | When viewing a report on FMS.com whose recipient council has a FMS cobrand, turns the council name into a link to view the same report on that council's cobranded site. Includes methods cribbed from Hakim's Open311 refactor branch from commit 47daa02420a4f5a4264c31efcf2a2e8611c2f23e.
| * | Display link to FMS for Councils on reportsDave Arter2016-07-08-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | When viewing on FMS.com a report made via a council cobrand, this adds a link to the FMS for Councils page for more info. This works by breaking out the report meta line ('Reported in the Street lighting category by Joe Bloggs at 09:51, Tuesday 1 March 2016') into its own template which can be overridden for the fixmystreet.com cobrand.
| * | Clarify wording of two-tier confirmation emailDave Arter2016-07-08-1/+2
| | |
| * | Restructure & clarify problem confirmation pageDave Arter2016-07-08-6/+14
| | | | | | | | | | | | | | | | | | | | | The message shown to the user if the report was sent to a council other than the cobrand owner was confusing so the wording has been clarified. Also added a call to action to view the report on FMS.com or the cobranded FMS.
| * | Add two-tier responsibility note to confirm emailDave Arter2016-07-08-1/+10
| | |
| * | [UK Councils] Use correct cobrand base URL if STAGING_SITEDave Arter2016-07-08-6/+12
| | | | | | | | | | | | | | | Instead of using BASE_URL as the base URL on council cobrands when STAGING is true, use the UK councils default (which is cobrand name prepended to BASE_URL).
| * | Refactor sending of problem confirmation emailDave Arter2016-07-08-32/+67
| | | | | | | | | | | | | | | | | | | | | | | | Replaced duplicate code blocks that are responsible for sending confirmation of problem email with a function. Should make it easier to do two-tier conditional messages later on. Also fixes a minor bug where the wrong confirmation email would be sent for reports from the mobile app to unresponsive councils.
| * | Show actual report destination in confirm messageDave Arter2016-07-08-20/+6
|/ / | | | | | | | | | | | | | | | | | | | | For two-tier authorities, it is possible to send a report from a cobrand to an authority other than the cobrand's owner. If this is the case, then highlight it on the confirmation message along with a link to view the problem report on the main fixmystreet.com site. The Hart-specific template is no longer required.
* | [East Herts] Cobranded frontendDave Arter2016-07-08-1/+681
| | | | | | | | For mysociety/FixMyStreet-Commercial#773.
* | [Bristol] Only show Open311 categories on Bristol cobrandDave Arter2016-07-08-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | This adds a new Cobrand::Default::categories_restriction method that can be used to limit what categories are available when making a new report on a per-cobrand basis. This is used by Cobrand::Bristol to only show Open311 categories when making a new report on fixmystreet.bristol.gov.uk but allowing all categories on FMS.com. Also removes the Hart::hidden_categories and uses the new categories_restriction method to achieve the same thing.
* | Stub out calls to Gaze when running testsDave Arter2016-07-08-1/+4
| | | | | | | | The tests were running slowly because of gaze.mysociety.org's rate-limiting.
* | Merge branch 'issues/commercial/769-zurich-lv95'Dave Arter2016-07-08-602/+376
|\ \
| * | [Zurich] Don’t include unpublished photos in CSV exportDave Arter2016-07-08-1/+1
| | |
| * | [Zurich] Update help text & translationsDave Arter2016-07-08-34/+41
| | |
| * | Don’t cache geocoder results when STAGING_SITE is 1Dave Arter2016-07-08-4/+4
| | |
| * | [Zurich] Use new LV95/CH1903+ geocoder and base map tilesDave Arter2016-07-07-563/+330
|/ / | | | | | | | | | | | | | | | | | | | | - 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.
* | Add change_category_text cobrand hook.Matthew Somerville2016-07-06-26/+19
| |
* | [Oxfordshire] Use relative image paths in CSS.Matthew Somerville2016-07-06-13/+13
| |
* | Update changelog with version 1.8.4 details.Matthew Somerville2016-07-06-6/+27
| |
* | Fix two XSS vulnerabilities.Matthew Somerville2016-07-06-6/+6
| | | | | | | | | | | | | | | | | | The title in the OpenGraph header was not being properly escaped, and the hide pins/all pins links were using single quotes which were able to be broken out of. Also remove the single quotes around rss_feed_uri, though this is not a vulnerability as its contents were sanitised (postcode or co-ords).
* | Standardise footer UTM tracking with other sitesZarino Zappia2016-07-05-3/+3
| |
* | Fix CSRF issue with new login during process.Matthew Somerville2016-07-05-0/+4
| | | | | | | | | | | | If you had no session cookie, started reporting a problem, logged in through that process, you would then get a CSRF error as the token had been created before the session was.