LP#1673857: Disable browser autocomplete for tag entry
authorJosh Stompro <stomproj@larl.org>
Mon, 17 Jul 2017 16:35:24 +0000 (11:35 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 24 Jul 2017 15:29:20 +0000 (11:29 -0400)
Adds an autocomplete="off" to the input field to stop browsers
from trying to fill in values.  When the browser fills in values
for tags it can prevent the typeahead feature from being used
easily.

Signed-off-by: Josh Stompro <stomproj@larl.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/cat/bucket/copy/t_apply_tags.tt2
Open-ILS/src/templates/staff/cat/volcopy/t_copy_tags.tt2

index 00d6db7..bc009b6 100644 (file)
@@ -22,7 +22,7 @@
             <label for="tagLabel">[% l('Tag') %]</label>
             <input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
                 uib-typeahead="tag for tag in getTags($viewValue)" typeahead-editable="false"
             <label for="tagLabel">[% l('Tag') %]</label>
             <input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
                 uib-typeahead="tag for tag in getTags($viewValue)" typeahead-editable="false"
-                class="form-control"></input>
+                class="form-control" autocomplete="off"></input>
           </div>
           <button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
         </div>
           </div>
           <button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
         </div>
index 01932ad..c2878f8 100644 (file)
@@ -22,7 +22,7 @@
             <label for="tagLabel">[% l('Tag') %]</label>
             <input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
                 uib-typeahead="tag for tag in getTags($viewValue)"
             <label for="tagLabel">[% l('Tag') %]</label>
             <input name="tabLabel" type="text" ng-model="selectedLabel" placeholder="[% l('Enter tag label...') %]"
                 uib-typeahead="tag for tag in getTags($viewValue)"
-                class="form-control"></input>
+                class="form-control" autocomplete="off"></input>
           </div>
           <button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
         </div>
           </div>
           <button type="button" class="btn btn-sm btn-default" ng-click="addTag()">[% l('Add Tag') %]</button>
         </div>