1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-20 12:52:58 +00:00

Prepare angular controllers for better JS code and convert setting send button to angular

This commit is contained in:
Loic Blot
2015-01-09 16:49:35 +00:00
parent 8b7aa4962c
commit 5624cd684b
2 changed files with 18 additions and 4 deletions
+15 -1
View File
@@ -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);