aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-07-07 13:49:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-07-07 13:49:05 +0100
commit44819320af5533bb03a0855a75da0c9ffd207ee8 (patch)
treeb42efd3598d5ef52eab09d3f58c8e451a3f67047 /web
parent719afb490479aa1cbc306b81a7534bb8a8affbf3 (diff)
parentc93ebfa26b864c26b9219b59f6676371e434ea0a (diff)
Merge branch 'issues/forcouncils/195-overloaded-action-scheduled'
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/staff.js12
-rw-r--r--web/cobrands/sass/_base.scss2
2 files changed, 13 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/staff.js b/web/cobrands/fixmystreet/staff.js
index 5355a8f54..2a1c6a8f4 100644
--- a/web/cobrands/fixmystreet/staff.js
+++ b/web/cobrands/fixmystreet/staff.js
@@ -80,6 +80,18 @@ $.extend(fixmystreet.set_up, {
$("#js-change-duplicate-report").click(refresh_duplicate_list);
},
+ action_scheduled_raise_defect: function() {
+ $("#report_inspect_form").find('[name=state]').on('change', function() {
+ if ($(this).val() !== "action scheduled") {
+ $("#js-inspect-action-scheduled").addClass("hidden");
+ $('#raise_defect_yes').prop('required', false);
+ } else {
+ $("#js-inspect-action-scheduled").removeClass("hidden");
+ $('#raise_defect_yes').prop('required', true);
+ }
+ });
+ },
+
list_item_actions: function() {
$('.item-list--reports').on('click', ':submit', function(e) {
e.preventDefault();
diff --git a/web/cobrands/sass/_base.scss b/web/cobrands/sass/_base.scss
index 07a2b88f8..a261c3b0a 100644
--- a/web/cobrands/sass/_base.scss
+++ b/web/cobrands/sass/_base.scss
@@ -2268,7 +2268,7 @@ table.nicetable {
.segmented-control--radio {
input {
position: absolute;
- left: -999px;
+ opacity: 0;
}
input:checked + label {