aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js16
-rw-r--r--web/cobrands/sass/_layout.scss8
2 files changed, 17 insertions, 7 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 129cc73bc..7c0a752d2 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -246,13 +246,15 @@ $(function(){
}
});
- $.each(fixmystreet.uploaded_files || [], function(i, f) {
- var mockFile = { name: f, server_id: f };
- photodrop.emit("addedfile", mockFile);
- photodrop.createThumbnailFromUrl(mockFile, '/photo/' + f + '.temp.jpeg');
- photodrop.emit("complete", mockFile);
- photodrop.options.maxFiles -= 1;
- });
+ if (typeof fixmystreet !== 'undefined') {
+ $.each(fixmystreet.uploaded_files || [], function(i, f) {
+ var mockFile = { name: f, server_id: f };
+ photodrop.emit("addedfile", mockFile);
+ photodrop.createThumbnailFromUrl(mockFile, '/photo/' + f + '.temp.jpeg');
+ photodrop.emit("complete", mockFile);
+ photodrop.options.maxFiles -= 1;
+ });
+ }
}
/*
diff --git a/web/cobrands/sass/_layout.scss b/web/cobrands/sass/_layout.scss
index a2dd1a8a0..96b3d2aec 100644
--- a/web/cobrands/sass/_layout.scss
+++ b/web/cobrands/sass/_layout.scss
@@ -3,6 +3,14 @@
$image-sprite: '/cobrands/fixmystreet/images/sprite.png' !default;
+.internal-link-fixed-header {
+ display: block;
+ /* 5em is roughly the height of .nav-wrapper-2 (4em) plus the border-top on
+ .nav-wrapper-2 (4px), plus the padding-top on .item-list__item (0.5em). */
+ padding-top: 5em;
+ margin-top: -5em;
+}
+
//hacks for desk/mob only stuff
.desk-only {
display: block;