aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2016-03-14 10:19:29 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-03-15 12:40:24 +0000
commit4eef3c7e5d067fcf76da2970c957bd34d257a013 (patch)
treee334f7637356ac92ab454d96c0490af8c6c7a83e /web
parentfb7c09a78baf4747185c9ac83360035c7ac09a65 (diff)
Fix ReferenceErrors breaking map on cobrands.
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index d9f2c226a..f01c5142d 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -80,7 +80,7 @@ $(function(){
var cobrand = $('meta[name="cobrand"]').attr('content');
- if (typeof variation !== undefined && variation === 1) {
+ if (typeof variation !== 'undefined' && variation === 1) {
$('input[name=variant]').val(1);
}
@@ -135,7 +135,7 @@ $(function(){
if (cobrand !== 'oxfordshire') {
$('#site-header').show();
}
- if (typeof variation !== undefined && variation === 1) {
+ if (typeof variation !== 'undefined' && variation === 1) {
banner_text = 'Click map to request a fix';
}
$('.big-green-banner')