1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-08 16:36:25 +00:00

HTML style & undef function fix

This commit is contained in:
Loic Blot 2016-09-19 22:39:08 +02:00
parent b9fba16893
commit 49cc81db8c
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
var len = $scope.contacts.length;
for (var i=0; i < len; i++) {
if ($scope.contacts[i]['nav'] == ct['nav']) {
$scope.apply(function () {
$scope.$apply(function () {
$scope.contacts[i].unread = ct.unread;
if (typeof(ct.avatar) != 'undefined') {
$scope.contacts[i].avatar = ct.avatar;

View File

@ -22,7 +22,7 @@ use \OCA\OcSms\Lib\CountryCodes;
</div>
<div id="app-settings-content">
<div><label for="setting_msg_per_page">Max messages on tab loading</label>
<input type="number" min="10" max="10000" name="setting_msg_per_page" ng-model="setting_msgLimit" ng-change="setMessageLimit()"></input>
<input type="number" min="10" max="10000" name="setting_msg_per_page" ng-model="setting_msgLimit" ng-change="setMessageLimit()" />
<span class="label-invalid-input" ng-if="setting_msgLimit == null || setting_msgLimit == undefined">Invalid message limit</span>
</div>