diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2017-11-02 13:19:53 +0100 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2017-11-02 13:19:53 +0100 |
commit | 618003ca84b02717e6adcf02a033b8fe8115cded (patch) | |
tree | d8036b1c81f385970e5ad069ce32cd7cdc3f8e3f /templates | |
parent | 71b5f850bf4d0bfbf8dae445ac38513aadd6c7dc (diff) |
Fixed contact update after propertyGroup refactor
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/detailItems/adr.html | 12 | ||||
-rw-r--r-- | templates/detailItems/email.html | 2 | ||||
-rw-r--r-- | templates/detailItems/groups.html | 2 | ||||
-rw-r--r-- | templates/detailItems/select.html | 2 | ||||
-rw-r--r-- | templates/detailItems/tel.html | 2 | ||||
-rw-r--r-- | templates/detailItems/text.html | 2 | ||||
-rw-r--r-- | templates/detailItems/textarea.html | 2 | ||||
-rw-r--r-- | templates/detailItems/url.html | 2 | ||||
-rw-r--r-- | templates/detailItems/username.html | 2 |
9 files changed, 14 insertions, 14 deletions
diff --git a/templates/detailItems/adr.html b/templates/detailItems/adr.html index f71f46ef..4d0ffb42 100644 --- a/templates/detailItems/adr.html +++ b/templates/detailItems/adr.html @@ -5,32 +5,32 @@ <div> <label for="details-pobox-{{ctrl.index}}">{{ctrl.t.poBox}}</label> - <input type="text" id="details-pobox-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[0]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" + <input type="text" id="details-pobox-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[0]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value="" ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-address-{{ctrl.index}}">{{ctrl.t.address}}</label> - <input type="text" id="details-address-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[2]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" + <input type="text" id="details-address-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[2]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value="" ng-disabled="ctrl.model.addressBook.readOnly" focus-expression="$parent.ctrl.focus === ctrl.name" /> </div> <div> <label for="details-postal-code-{{ctrl.index}}">{{ctrl.t.postalCode}}</label> - <input type="text" id="details-postal-code-{{ctrl.index}}" name="postal-code" ng-model="ctrl.data.value[5]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" + <input type="text" id="details-postal-code-{{ctrl.index}}" name="postal-code" ng-model="ctrl.data.value[5]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value="" ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-city-{{ctrl.index}}">{{ctrl.t.city}}</label> - <input type="text" id="details-city-{{ctrl.index}}" name="city" ng-model="ctrl.data.value[3]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" + <input type="text" id="details-city-{{ctrl.index}}" name="city" ng-model="ctrl.data.value[3]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value="" ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-state-{{ctrl.index}}">{{ctrl.t.state}}</label> - <input type="text" id="details-state-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[4]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" + <input type="text" id="details-state-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[4]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value="" ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-country-{{ctrl.index}}">{{ctrl.t.country}}</label> - <input type="text" id="details-country-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[6]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" + <input type="text" id="details-country-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[6]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value="" ng-disabled="ctrl.model.addressBook.readOnly" /> </div> diff --git a/templates/detailItems/email.html b/templates/detailItems/email.html index 0f9c5ddf..0fd30e52 100644 --- a/templates/detailItems/email.html +++ b/templates/detailItems/email.html @@ -6,7 +6,7 @@ </a> <input type="email" id="details-{{ctrl.name}}-{{ctrl.index}}" name="email" ng-model="ctrl.data.value" email-model ng-model-options="{ debounce: 500 }" - ng-change="ctrl.model.updateContact()" value="" + ng-change="ctrl.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly" diff --git a/templates/detailItems/groups.html b/templates/detailItems/groups.html index 9084a7f5..b7e9a4e1 100644 --- a/templates/detailItems/groups.html +++ b/templates/detailItems/groups.html @@ -1,6 +1,6 @@ <label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> <ui-select id="details-{{ctrl.name}}-{{ctrl.index}}" multiple tagging tagging-label="{{ctrl.t.newGroup}}" ng-model="ctrl.data.value" - on-remove="ctrl.model.updateContact()" on-select="ctrl.model.updateContact()" + on-remove="ctrl.updateContact()" on-select="ctrl.updateContact()" theme="select2" focus-expression="$parent.$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly"> <ui-select-match placeholder="{{ctrl.meta.readableName}}">{{$item}}</ui-select-match> diff --git a/templates/detailItems/select.html b/templates/detailItems/select.html index 90164022..650fdb0f 100644 --- a/templates/detailItems/select.html +++ b/templates/detailItems/select.html @@ -1,6 +1,6 @@ <label ng-if="ctrl.availableOptions.length > 0" for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}</label> <select id="details-{{ctrl.name}}" name="{{ctrl.name}}" ng-if="ctrl.availableOptions.length > 0" - ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" + ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html index 85930e60..2b506efc 100644 --- a/templates/detailItems/tel.html +++ b/templates/detailItems/tel.html @@ -6,7 +6,7 @@ </a> <input type="tel" id="details-{{ctrl.name}}-{{ctrl.index}}" name="phone" ng-model="ctrl.data.value" tel-model ng-model-options="{ debounce: 500 }" - ng-change="ctrl.model.updateContact()" value="" + ng-change="ctrl.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly" diff --git a/templates/detailItems/text.html b/templates/detailItems/text.html index d70f7e0b..b79fd84a 100644 --- a/templates/detailItems/text.html +++ b/templates/detailItems/text.html @@ -4,7 +4,7 @@ <label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> <input type="text" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}" ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" - ng-change="ctrl.model.updateContact()" value="" + ng-change="ctrl.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly" diff --git a/templates/detailItems/textarea.html b/templates/detailItems/textarea.html index 2d25fdbb..1232fad9 100644 --- a/templates/detailItems/textarea.html +++ b/templates/detailItems/textarea.html @@ -1,7 +1,7 @@ <label for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> <textarea id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}" ng-model="ctrl.data.value" rows="3" cols="40" - ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" + ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly"> diff --git a/templates/detailItems/url.html b/templates/detailItems/url.html index f9952590..32ecb40e 100644 --- a/templates/detailItems/url.html +++ b/templates/detailItems/url.html @@ -4,7 +4,7 @@ </a> <input type="url" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}" ng-model="ctrl.data.value" ng-model-options="{ debounce: 500, allowInvalid: true }" - ng-change="ctrl.model.updateContact()" value="" + ng-change="ctrl.updateContact()" value="" placeholder="https://…" focus-expression="$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly" diff --git a/templates/detailItems/username.html b/templates/detailItems/username.html index 691f3c90..f4fa7183 100644 --- a/templates/detailItems/username.html +++ b/templates/detailItems/username.html @@ -4,7 +4,7 @@ <label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> <input type="text" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}" ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" - ng-change="ctrl.model.updateContact()" value="" + ng-change="ctrl.updateContact()" value="" placeholder="Username" focus-expression="$parent.ctrl.focus === ctrl.name" ng-disabled="ctrl.model.addressBook.readOnly" |