diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-24 19:47:32 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-24 19:47:32 +0200 |
commit | d23a9aff63560e997a4f2eea8f96a83fc44c92e9 (patch) | |
tree | ae9f2fd75f6a59dbb6567b49ae0c074aa3211758 /templates | |
parent | 28583d67e3e878b71c3bac9279b31e2d56bfb621 (diff) |
Tooltip to the right and empty fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/addressBookList.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/addressBookList.html b/templates/addressBookList.html index 454461f2..3815ae39 100644 --- a/templates/addressBookList.html +++ b/templates/addressBookList.html @@ -4,10 +4,10 @@ <li> <form ng-submit="ctrl.createAddressBook()" name="newAddressBookForm"> <input id="newList" placeholder="{{ctrl.t.addressBookName}}" class="newAddressBookInput" - ng-model="ctrl.newAddressBookName" type="text" + ng-model="ctrl.newAddressBookName" type="text" ng-minlength="1" autocomplete="off" autocorrect="off" spellcheck="false" tooltip-enable="!newAddressBookForm.$pristine" - required ng-pattern="ctrl.addressBookRegex" tooltip-is-open="newAddressBookForm.$invalid" tooltip-trigger="none" - tooltip-placement="top" uib-tooltip="{{ctrl.t.regexError}}" tooltip-append-to-body="true"/> + required ng-pattern="ctrl.addressBookRegex" tooltip-is-open="newAddressBookForm.$invalid && !newAddressBookForm.$error.required" tooltip-trigger="none" + tooltip-placement="right" uib-tooltip="{{ctrl.t.regexError}}" tooltip-append-to-body="true"/> <input type="submit" value="" class="newAddressBookSubmit inline-button icon-confirm action pull-right" ng-disabled="newAddressBookForm.$invalid || newAddressBookForm.$pristine" /> </form> |