summaryrefslogtreecommitdiffstats
path: root/templates/detailItems
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-23 14:07:40 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-24 23:06:55 +0100
commitabf5335acca584e565350c2896a46dbcafe8e203 (patch)
tree88d3d4fc722ffda26c00d8109b09dd798a149399 /templates/detailItems
parent54a98a293d0c9f81077fb329e858e790878b2da7 (diff)
Add new detailsitem type url + hide unknown properties + changing tel and textarea type triggers update
Diffstat (limited to 'templates/detailItems')
-rw-r--r--templates/detailItems/tel.html2
-rw-r--r--templates/detailItems/textarea.html2
-rw-r--r--templates/detailItems/url.html3
3 files changed, 5 insertions, 2 deletions
diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html
index abe752ea..f403940c 100644
--- a/templates/detailItems/tel.html
+++ b/templates/detailItems/tel.html
@@ -11,4 +11,4 @@
<option>Other</option>
</select>
</label>
-<input type="tel" id="details-{{ctrl.name}}" name="phone" ng-model="ctrl.data[0].value" tel-model value="" />
+<input type="tel" id="details-{{ctrl.name}}" name="phone" ng-model="ctrl.data[0].value" tel-model ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" />
diff --git a/templates/detailItems/textarea.html b/templates/detailItems/textarea.html
index 28230d01..84ec47f3 100644
--- a/templates/detailItems/textarea.html
+++ b/templates/detailItems/textarea.html
@@ -1,2 +1,2 @@
<label for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}:</label>
-<textarea id="details-{{ctrl.name}} name="{{ctrl.name}}" ng-model="ctrl.data.value" rows="8" cols="40"></textarea>
+<textarea id="details-{{ctrl.name}} name="{{ctrl.name}}" ng-model="ctrl.data.value" rows="8" cols="40" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()"></textarea>
diff --git a/templates/detailItems/url.html b/templates/detailItems/url.html
new file mode 100644
index 00000000..eea581f7
--- /dev/null
+++ b/templates/detailItems/url.html
@@ -0,0 +1,3 @@
+<label for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}:</label>
+<input type="text" id="details-{{ctrl.name}}" name="{{ctrl.name}}" ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" />
+<a target="_blank" href="{{ctrl.data.value}}">Open</a>