aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 073e942da..1d18b4d98 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -377,9 +377,14 @@ $.fn.drawer = function(id, ajax) {
if (!d.length) {
d = $('<div id="' + id + '">');
}
+ var max_height = $(window).height() - $('.content').offset().top - $('.shadow-wrap').height();
+ var height = d.height();
+ if (!height || height > max_height) {
+ height = max_height;
+ }
d.css({
backgroundColor: 'white',
- height: $(window).height() - $('.content').offset().top - $('.shadow-wrap').height(),
+ height: height,
display: 'none', zIndex: 1001, position: 'relative',
overflow: 'auto',
padding: '1em'
@@ -402,6 +407,7 @@ $.fn.drawer = function(id, ajax) {
$('#key-tool-wards').drawer('council_wards', false);
$('#key-tool-around-updates').drawer('updates_ajax', true);
+ $('#key-tool-report-updates').drawer('report-updates-data', false);
// Go directly to RSS feed if RSS button clicked on alert page
// (due to not wanting around form to submit, though good thing anyway)