diff options
author | Struan Donald <struan@exo.org.uk> | 2012-08-01 15:20:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-08-01 15:20:38 +0100 |
commit | 028e927160369a633b488e1ae8eac77ed504b3ed (patch) | |
tree | 0a29f643b62c35bcdbad6908445afc0043ed76ea /web/js/southampton.js | |
parent | a8d6fb93bcdc1b13a5596c444e4a2bc5bbe3883d (diff) |
fix southampton street lighting message if map is skipped
Diffstat (limited to 'web/js/southampton.js')
-rw-r--r-- | web/js/southampton.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/js/southampton.js b/web/js/southampton.js index af090d89b..ac7292f5d 100644 --- a/web/js/southampton.js +++ b/web/js/southampton.js @@ -120,7 +120,11 @@ $(function(){ $('#category_extra').hide('fast'); var lighting_content = '<div id="street_light_report" style="margin: 1em 0em 1em 6.5em">Please report Street light problems using the Southampton Street Lighting site at: <a href="http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx">http://www.lightsoninsouthampton.co.uk/Public/ReportFault.aspx</a></div>'; - $('#form_category_row').after(lighting_content); + if ( $('#form_category_row').count ) { + $('#form_category_row').after(lighting_content); + } else { + $('#form_category:parent').after(lighting_content); + } } else { $('#category_extra').hide('fast'); } |