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:
+5
-2
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user