1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-22 05:43:07 +00:00

Migrate from angularJS 1.1 to 1.3

This commit is contained in:
Loic Blot
2015-06-25 19:23:48 +00:00
parent b04677851a
commit 90144ea042
2 changed files with 252 additions and 178 deletions
+3 -3
View File
@@ -34,8 +34,8 @@ function arrayUnique(arr) {
return unq;
}
app.controller('OcSmsController', /*['$scope',*/
function ($timeout, $scope) {
app.controller('OcSmsController', ['$scope', '$timeout',
function ($scope, $timeout) {
$scope.buttons = [
{text: "Send"}
];
@@ -104,7 +104,7 @@ app.controller('OcSmsController', /*['$scope',*/
setInterval(checkNewMessages, 10000);
});
}
);
]);
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);