In Firefox, the initial loading of some fields (like max_instances) failed
because the HTML widget had type "number" but the Javascript data wasn't
strictly numeric (ie it had type "string" with numeric content).
text-align: center;
}
-.crmCaseType input[type=number] {
+.crmCaseType input.number {
width: 3.5em;
}
{{ activityType.name }}
</td>
<td>
- <input type="number" ng-model="activityType.max_instances" />
+ <input class="number" type="text" ng-pattern="/^[0-9]*$/" ng-model="activityType.max_instances" />
</td>
<td>
<a class="crm-hover-button" ng-click="removeItem(caseType.definition.activityTypes, activityType)">
</select>
</td>
<td>
- <input type="number" ng-model="activity.reference_offset" />
+ <input class="number" type="text" ng-pattern="/^[0-9]*$/" ng-model="activity.reference_offset" />
</td>
<td>
<select ng-model="activity.reference_select" ng-options="key as value for (key,value) in {newest: 'Newest', oldest: 'Oldest'}">