1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-16 19:02:59 +00:00

Country value is now sent and stored to database

add jquery call
fix database table name
This commit is contained in:
Loic Blot
2015-01-09 17:05:49 +00:00
parent 5624cd684b
commit 76decabe11
3 changed files with 9 additions and 6 deletions
+5 -2
View File
@@ -24,9 +24,11 @@ var app = angular.module('OcSms', ['OC']);
app.controller('SettingsController', ['$scope',
function ($scope) {
$scope.buttons = [{}];
$scope.buttons = [
{text: "Send"}
];
$scope.sendCountry = function () {
alert('sendCountry');
$.post(OC.generateUrl('/apps/ocsms/set/country'),{'country': $('select[name=intl_phone]').val()});
};
}
]);
@@ -36,6 +38,7 @@ app.controller('ContactsController' ['$scope', function ($scope) {
]);
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
if (results == null) {