LP#1708291: teach egBasicComboBox and egDatePicker to accept focusMe
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 6 Jul 2017 21:14:15 +0000 (17:14 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 1 Sep 2017 16:47:22 +0000 (12:47 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Conflicts:
Open-ILS/web/js/ui/default/staff/services/ui.js

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/staff/share/t_datetime.tt2
Open-ILS/web/js/ui/default/staff/services/ui.js

index 6359212..492fa1c 100644 (file)
@@ -14,6 +14,7 @@
         ng-blur="ngBlur"
         ng-disabled="ngDisabled"
         ng-required="ngRequired"
+        focus-me="focusMe"
         close-text="{{closeText}}"/>
       <span class="input-group-btn">
         <button type="button" class="btn btn-default"
index 6513459..aa95d16 100644 (file)
@@ -594,10 +594,11 @@ function($window , egStrings) {
             selected: "=",
             egDisabled: "=",
             allowAll: "@",
+            focusMe: "=?"
         },
         template:
             '<div class="input-group">'+
-                '<input type="text" ng-disabled="egDisabled" class="form-control" ng-model="selected" ng-change="makeOpen()">'+
+                '<input type="text" ng-disabled="egDisabled" class="form-control" ng-model="selected" ng-change="makeOpen()" focus-me="focusMe">'+
                 '<div class="input-group-btn" dropdown ng-class="{open:isopen}">'+
                     '<button type="button" ng-click="showAll()" class="btn btn-default dropdown-toggle"><span class="caret"></span></button>'+
                     '<ul class="dropdown-menu dropdown-menu-right">'+
@@ -852,7 +853,8 @@ function($window , egStrings) {
                 ngRequired : '=',
                 hideDatePicker : '=',
                 dateFormat : '=?',
-                outOfRange : '=?'
+                outOfRange : '=?',
+                focusMe : '=?'
             },
             require: 'ngModel',
             templateUrl: './share/t_datetime',