From: Galen Charlton <gmc@equinoxinitiative.org>
Date: Fri, 24 May 2019 18:04:33 +0000 (-0400)
Subject: LP#1796903: (follow-up) disabled the calendar button when the text input is disabled
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f6c0ba381ad29334c708aa001ed7e72bcc73e32a;p=contrib%2FConifer.git

LP#1796903: (follow-up) disabled the calendar button when the text input is disabled

Disabling the calendar button when the datepicker is disabled allows
ChromeVox (at least) to skip past a button that cannot be invoked
until (like is possible in the checkout page) the picker is enabled.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
---

diff --git a/Open-ILS/src/templates/staff/share/t_datetime.tt2 b/Open-ILS/src/templates/staff/share/t_datetime.tt2
index dbeb7193b5..9d83d30d7c 100644
--- a/Open-ILS/src/templates/staff/share/t_datetime.tt2
+++ b/Open-ILS/src/templates/staff/share/t_datetime.tt2
@@ -18,7 +18,7 @@
         close-text="{{closeText}}"/>
       <span class="input-group-btn">
         <button type="button" class="btn btn-default"
-          ng-click="datePickerIsOpen=!datePickerIsOpen"
+          ng-click="datePickerIsOpen=!datePickerIsOpen" ng-disabled="ngDisabled"
           aria-label="Select a date" aria-pressed="{{datePickerIsOpen || false}}">
           <span class="glyphicon glyphicon-calendar" title="Select a date"></span>
         </button>