diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 12 | ||||
-rw-r--r-- | web/cobrands/sass/_base.scss | 1 | ||||
-rw-r--r-- | web/cobrands/tfl/js.js | 1 |
3 files changed, 7 insertions, 7 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 68b12c323..48ae83103 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -684,6 +684,10 @@ $.extend(fixmystreet.set_up, { $originalInput.hide(); $dropzone.insertAfter($originalInput); + var default_message = translation_strings.upload_default_message; + if ($("html").hasClass("mobile")) { + default_message = translation_strings.upload_default_message_mobile; + } var photodrop = new Dropzone($dropzone[0], { url: '/photo/upload', paramName: 'photo', @@ -695,7 +699,7 @@ $.extend(fixmystreet.set_up, { resizeHeight: 2048, resizeQuality: 0.6, acceptedFiles: 'image/jpeg,image/pjpeg,image/gif,image/tiff,image/png', - dictDefaultMessage: translation_strings.upload_default_message, + dictDefaultMessage: default_message, dictCancelUploadConfirmation: translation_strings.upload_cancel_confirmation, dictInvalidFileType: translation_strings.upload_invalid_file_type, dictMaxFilesExceeded: translation_strings.upload_max_files_exceeded, @@ -833,10 +837,8 @@ $.extend(fixmystreet.set_up, { map_controls: function() { //add links container (if its not there) - if (fixmystreet.cobrand != 'zurich') { - if ($('#sub_map_links').length === 0) { - $('<p class="sub-map-links" id="sub_map_links" />').insertAfter($('#map')); - } + if ($('#sub_map_links').length === 0) { + $('<p class="sub-map-links" id="sub_map_links" />').insertAfter($('#map')); } if ($('.mobile').length) { diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss index 5e3e48ff0..a9e0da128 100644 --- a/web/cobrands/sass/_base.scss +++ b/web/cobrands/sass/_base.scss @@ -810,7 +810,6 @@ ul.error { background-repeat: no-repeat; color: #333 !important; padding: 1em; - text-transform: uppercase; font-size: 0.6875em; font-family: $meta-font; font-weight: normal; diff --git a/web/cobrands/tfl/js.js b/web/cobrands/tfl/js.js index a217d3984..248162597 100644 --- a/web/cobrands/tfl/js.js +++ b/web/cobrands/tfl/js.js @@ -1,7 +1,6 @@ (function(){ translation_strings.name.validName = 'Please enter your full name, Transport for London needs this information – if you do not wish your name to be shown on the site, untick the box below'; -translation_strings.upload_default_message = 'Drag photo here to upload or <u>browse files</u>'; translation_strings.incident_date = { date: 'Enter a date in the format dd/mm/yyyy' }; translation_strings.time = 'Enter a time in the format hh:mm'; |