blob: d43006fd568495c871ce4b663caecdbd1d1c6bc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
(function(){
if (!fixmystreet.maps) {
return;
}
if (fixmystreet.cobrand == 'isleofwight') {
// We want the cobranded site to always display "Island Roads"
// as the destination for reports in the "Public details" section.
// This is OK because the cobranded site only shows categories which
// Island Roads actually handle.
// To achieve this we ignore the passed list of bodies and always
// use "Island Roads" when calling the original function.
// NB calling the original function is required so that private categories
// cause the correct text to be shown in the UI.
var original_update_public_councils_text = fixmystreet.update_public_councils_text;
fixmystreet.update_public_councils_text = function(text, bodies) {
original_update_public_councils_text.call(this, text, ['Island Roads']);
};
}
var org_id = '1062';
var body = "Isle of Wight Council";
fixmystreet.assets.add(fixmystreet.roadworks.layer_future, {
http_options: { params: { organisation_id: org_id } },
body: body
});
fixmystreet.assets.add(fixmystreet.roadworks.layer_planned, {
http_options: { params: { organisation_id: org_id } },
body: body
});
})();
|