Skip to content

Commit

Permalink
[Bristol] Remove category search for Bristol
Browse files Browse the repository at this point in the history
As Bristol are using extra questions for some categories
(types of pothole) the filter doesn't pick these up
and presents the only available category of pothole
which is in a park.

Will be resolved by Bristol making changes to their
categories which they will do in the future.

In the meantime, we remove the category for them.

https://mysocietysupport.freshdesk.com/a/tickets/4112
  • Loading branch information
MorayMySoc committed May 3, 2024
1 parent 9b81dd6 commit 8b0ebe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="hidden-nojs">
<div class="hidden-nojs" id="category-filter-div">
<p>[% loc('What would you like to report?') %]
[% loc('Type in the search box to find an available category or choose from the list below.') %]
<div class="category-filter-box">
Expand Down
4 changes: 4 additions & 0 deletions web/cobrands/fixmystreet/fixmystreet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,10 @@ fixmystreet.fetch_reporting_data = function() {
fixmystreet.body_overrides.clear();
}

if (data.bodies && data.bodies.indexOf('Bristol City Council') > -1) {
$('#category-filter-div').hide();
}

fixmystreet.update_councils_text(data);
$('#js-top-message').html(data.top_message || '');

Expand Down

0 comments on commit 8b0ebe9

Please sign in to comment.