diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-03 20:13:11 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-03 20:13:44 +0200 |
commit | 9162bce787c40c68cb7fc158b50caf2b5af6585e (patch) | |
tree | 565a2363feac59947d598ec9e51dff04c4e72e30 | |
parent | 8f08e38df45458579771977768d60d58a68852f1 (diff) |
Fix variable error
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | templates/detailItems/adr.html | 16 | ||||
-rw-r--r-- | templates/detailItems/date.html | 4 | ||||
-rw-r--r-- | templates/detailItems/email.html | 6 | ||||
-rw-r--r-- | templates/detailItems/groups.html | 2 | ||||
-rw-r--r-- | templates/detailItems/n.html | 12 | ||||
-rw-r--r-- | templates/detailItems/select.html | 4 | ||||
-rw-r--r-- | templates/detailItems/tel.html | 6 | ||||
-rw-r--r-- | templates/detailItems/text.html | 6 | ||||
-rw-r--r-- | templates/detailItems/textarea.html | 4 | ||||
-rw-r--r-- | templates/detailItems/url.html | 4 | ||||
-rw-r--r-- | templates/detailItems/username.html | 6 |
11 files changed, 35 insertions, 35 deletions
diff --git a/templates/detailItems/adr.html b/templates/detailItems/adr.html index 0a41e038..f71f46ef 100644 --- a/templates/detailItems/adr.html +++ b/templates/detailItems/adr.html @@ -1,36 +1,36 @@ -<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.addressBook.readOnly"> +<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> <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="" - ng-disabled="ctrl.addressBook.readOnly" /> + 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="" - ng-disabled="ctrl.addressBook.readOnly" + 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="" - ng-disabled="ctrl.addressBook.readOnly" /> + 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="" - ng-disabled="ctrl.addressBook.readOnly" /> + 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="" - ng-disabled="ctrl.addressBook.readOnly" /> + 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="" - ng-disabled="ctrl.addressBook.readOnly" /> + ng-disabled="ctrl.model.addressBook.readOnly" /> </div> diff --git a/templates/detailItems/date.html b/templates/detailItems/date.html index ebd77223..8a43b098 100644 --- a/templates/detailItems/date.html +++ b/templates/detailItems/date.html @@ -3,6 +3,6 @@ ng-model="ctrl.data.value" datepicker ng-model-options="{ debounce: 500 }" ng-change="ctrl.dateInputChanged()" value="" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly" + ng-disabled="ctrl.model.addressBook.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/email.html b/templates/detailItems/email.html index 0955690a..0f9c5ddf 100644 --- a/templates/detailItems/email.html +++ b/templates/detailItems/email.html @@ -1,4 +1,4 @@ -<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.addressBook.readOnly"> +<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> <a ng-if="ctrl.data.value.length" class="item-action" href="mailto:{{ctrl.data.value}}"> @@ -9,6 +9,6 @@ ng-change="ctrl.model.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly" + ng-disabled="ctrl.model.addressBook.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/groups.html b/templates/detailItems/groups.html index 0a666bed..9084a7f5 100644 --- a/templates/detailItems/groups.html +++ b/templates/detailItems/groups.html @@ -2,7 +2,7 @@ <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()" theme="select2" focus-expression="$parent.$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly"> + ng-disabled="ctrl.model.addressBook.readOnly"> <ui-select-match placeholder="{{ctrl.meta.readableName}}">{{$item}}</ui-select-match> <ui-select-choices repeat="group in ctrl.availableGroups | filter:$select.search"> {{group}} diff --git a/templates/detailItems/n.html b/templates/detailItems/n.html index 433bb1a2..67c584d0 100644 --- a/templates/detailItems/n.html +++ b/templates/detailItems/n.html @@ -1,32 +1,32 @@ <label ng-if="ctrl.availableOptions.length === 0">{{ctrl.meta.readableName}}</label> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> <div> <label for="details-honorificPrefix-{{ctrl.index}}">{{ctrl.t.honorificPrefix}}</label> <input type="text" id="details-honorificPrefix-{{ctrl.index}}" name="honorificPrefix" ng-model="ctrl.data.value[3]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" autocomplete="off" autocorrect="off" spellcheck="false" value="" - ng-disabled="ctrl.addressBook.readOnly" /> + ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-firstName-{{ctrl.index}}">{{ctrl.t.firstName}}</label> <input type="text" id="details-firstName-{{ctrl.index}}" name="firstName" ng-model="ctrl.data.value[1]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" autocomplete="off" autocorrect="off" spellcheck="false" value="" - ng-disabled="ctrl.addressBook.readOnly" /> + ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-additionalNames-{{ctrl.index}}">{{ctrl.t.additionalNames}}</label> <input type="text" id="details-additionalNames-{{ctrl.index}}" name="additionalNames" ng-model="ctrl.data.value[2]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" autocomplete="off" autocorrect="off" spellcheck="false" value="" - ng-disabled="ctrl.addressBook.readOnly" /> + ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-familyName-{{ctrl.index}}">{{ctrl.t.familyName}}</label> <input type="text" id="details-familyName-{{ctrl.index}}" name="familyName" ng-model="ctrl.data.value[0]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" autocomplete="off" autocorrect="off" spellcheck="false" value="" - ng-disabled="ctrl.addressBook.readOnly" /> + ng-disabled="ctrl.model.addressBook.readOnly" /> </div> <div> <label for="details-honorificSuffix-{{ctrl.index}}">{{ctrl.t.honorificSuffix}}</label> <input type="text" id="details-honorificSuffix-{{ctrl.index}}" name="honorificSuffix" ng-model="ctrl.data.value[4]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" autocomplete="off" autocorrect="off" spellcheck="false" value="" - ng-disabled="ctrl.addressBook.readOnly" /> + ng-disabled="ctrl.model.addressBook.readOnly" /> </div> diff --git a/templates/detailItems/select.html b/templates/detailItems/select.html index 3d35bdee..90164022 100644 --- a/templates/detailItems/select.html +++ b/templates/detailItems/select.html @@ -1,7 +1,7 @@ <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-disabled="ctrl.addressBook.readOnly"> + ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html index 20b754b8..85930e60 100644 --- a/templates/detailItems/tel.html +++ b/templates/detailItems/tel.html @@ -1,4 +1,4 @@ -<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.addressBook.readOnly"> +<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> <a ng-if="ctrl.data.value.length" class="item-action" href="tel:{{ctrl.data.value}}"> @@ -9,6 +9,6 @@ ng-change="ctrl.model.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly" + ng-disabled="ctrl.model.addressBook.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/text.html b/templates/detailItems/text.html index beccff43..d70f7e0b 100644 --- a/templates/detailItems/text.html +++ b/templates/detailItems/text.html @@ -1,4 +1,4 @@ -<select ng-if="ctrl.availableOptions.length > 0" ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.addressBook.readOnly"> +<select ng-if="ctrl.availableOptions.length > 0" ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> <label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> @@ -7,6 +7,6 @@ ng-change="ctrl.model.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly" + ng-disabled="ctrl.model.addressBook.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/textarea.html b/templates/detailItems/textarea.html index 739f962b..2d25fdbb 100644 --- a/templates/detailItems/textarea.html +++ b/templates/detailItems/textarea.html @@ -4,6 +4,6 @@ ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly"> + ng-disabled="ctrl.model.addressBook.readOnly"> </textarea> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/url.html b/templates/detailItems/url.html index 44fecf7d..f9952590 100644 --- a/templates/detailItems/url.html +++ b/templates/detailItems/url.html @@ -7,6 +7,6 @@ ng-change="ctrl.model.updateContact()" value="" placeholder="https://…" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly" + ng-disabled="ctrl.model.addressBook.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> diff --git a/templates/detailItems/username.html b/templates/detailItems/username.html index 92a5655c..691f3c90 100644 --- a/templates/detailItems/username.html +++ b/templates/detailItems/username.html @@ -1,4 +1,4 @@ -<select ng-if="ctrl.availableOptions.length > 0" ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.addressBook.readOnly"> +<select ng-if="ctrl.availableOptions.length > 0" ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.model.addressBook.readOnly"> <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option> </select> <label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> @@ -7,6 +7,6 @@ ng-change="ctrl.model.updateContact()" value="" placeholder="Username" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.addressBook.readOnly" + ng-disabled="ctrl.model.addressBook.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> |