diff --git a/js/script.js b/js/script.js index 45647f2..8e790c2 100644 --- a/js/script.js +++ b/js/script.js @@ -20,7 +20,21 @@ var unreadCountNotifStep = 12; var lastUnreadCountAllConv = 0; var originalTitle = document.title; -angular.module('OcSms', ['OC']); +var app = angular.module('OcSms', ['OC']); + +app.controller('SettingsController', ['$scope', + function ($scope) { + $scope.buttons = [{}]; + $scope.sendCountry = function () { + alert('sendCountry'); + }; + } +]); + +app.controller('ContactsController' ['$scope', function ($scope) { + } +]); + $.urlParam = function(name){ var results = new RegExp('[\?&]' + name + '=([^]*)').exec(window.location.href); diff --git a/templates/main.php b/templates/main.php index 0d723ba..8bc379d 100644 --- a/templates/main.php +++ b/templates/main.php @@ -8,7 +8,7 @@ use \OCA\OcSms\Lib\CountryCodes; ?>