Commits on Jul 26, 2016
  1. @davea

    Merge branch 'pinished'

    davea committed Jul 26, 2016
Commits on Jul 21, 2016
  1. @dracos

    Refactor map pin/feature functions.

    dracos committed Jul 13, 2016
  2. @davea
  3. @davea
Commits on Jul 20, 2016
  1. @davea
Commits on Jul 19, 2016
  1. @davea

    Respect cobrand restriction for unsent reports

    davea committed Jul 18, 2016
  2. @davea
  3. @davea

    Use improved TestMech::create_user_ok instead of User::find_or_create

    This improves create_user_ok to work more like create_body_ok where extra params
    can be passed in and set on the model.
    davea committed Jul 14, 2016
  4. @davea
  5. @davea
  6. @dracos @davea

    Use normal user authentication to control access to /admin

     - Adds is_superuser flag to User
     - Logged-in user must be a superuser or have from_body set in order to access
       anything within /admin
     - has_permission_to on a superuser will always return true
     - Only superusers can create/grant superusers
     - New `createsuperuser` command for creating superusers
    dracos committed with davea Jul 6, 2016
Commits on Jul 15, 2016
  1. @dracos
  2. @dracos

    Allow editing of category on admin report edit.

    This also updates the body column to match the category.
    dracos committed Jun 27, 2016
  3. @dracos

    Remove bit of unused/needed code.

    dracos committed Jun 27, 2016
  4. @dracos
  5. @dracos

    Stop using collapse filter in category template.

    If a category had eg. a double space, the use of the filter meant it
    was output in the HTML with only a single space and so woudn't match
    the database entry. Switch to more explicit template space chomping.
    dracos committed Jul 15, 2016
Commits on Jul 14, 2016
  1. @dracos
  2. @dracos

    Only set document.title after any pushState call.

    pushState stores the title at the time for e.g. the Back dropdown.
    dracos committed Jul 13, 2016
Commits on Jul 13, 2016
  1. @dracos

    Call two more set up functions on report pull.

    This is so form valdation and the 'log in by email' button are set up
    appropriately if pulled in via JavaScript.
    dracos committed Jul 13, 2016
  2. @dracos
Commits on Jul 12, 2016
  1. @dracos

    Fix issues with sub_map_links and JS navigation.

    Have 'Get updates' displaying correctly on a report page again,
    fix some navigational problems.
    dracos committed Jul 12, 2016
  2. @dracos

    Fix going back to /reports page on mobile.

    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).
    dracos committed Jul 12, 2016
  3. @dracos
  4. @dracos

    Make sure mobile map scrolled into view and fixed.

    This prevents scrolling when we're on the full screen map, and makes
    sure the map is back in view when it is shown.
    dracos committed Jul 12, 2016
  5. @dracos

    Only create popstate event after page load.

    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.
    dracos committed Jul 12, 2016
  6. @dracos

    Fix a few JavaScript issues with reports pages.

    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.
    dracos committed Jul 12, 2016
Commits on Jul 11, 2016
  1. @davea

    Add missing 'pin.problem' attribute

    Missed this from 8a8b34, and it was causing a crash on certain /reports/ pages
    when trying to display the list of problems.
    davea committed Jul 11, 2016
  2. @dracos

    Tweak WMTS JavaScript to match merged branch.

    Use $.each rather than .forEach.
    dracos committed Jul 11, 2016
  3. @dracos
  4. @dracos

    [fixmystreet.com] Update share buttons to be links

    Having them as SDK-included buttons causes issues with the ajax
    report pull-ins, plus Firefox doesn't like them being hidden.
    dracos committed Jul 11, 2016
  5. @dracos
  6. @dracos

    Add history polyfill for <=IE9.

    dracos committed Jul 4, 2016
  7. @zarino @dracos

    Fix map page popstate / mobile nav menu bug

    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.
    zarino committed with dracos Jul 1, 2016
  8. @zarino @dracos

    Move to using pushState for new report.

    Update the URL whenever location of pin is updated (first time, drag, or
    reclick), make sure it works when clicking back.
    zarino committed with dracos Jun 20, 2016
  9. @dracos