mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Try to migrate some settings send function
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -50,15 +50,6 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
|
||||
$scope.selectedContact = {};
|
||||
$scope.lastSearch = '';
|
||||
|
||||
// Settings
|
||||
$scope.sendCountry = function () {
|
||||
$.post(Sms.generateURL('/set/country'), {'country': $('select[name=intl_phone]').val()});
|
||||
};
|
||||
|
||||
$scope.setMessageLimit = function () {
|
||||
$.post(Sms.generateURL('/set/msglimit'), {'limit': SmsSettings.messageLimit});
|
||||
};
|
||||
|
||||
$scope.setNotificationSetting = function () {
|
||||
$.post(Sms.generateURL('/set/notification_state'),
|
||||
{
|
||||
|
||||
@@ -32,6 +32,23 @@ var SmsSettings = {
|
||||
});
|
||||
},
|
||||
|
||||
sendMessageLimit: function () {
|
||||
var self = this;
|
||||
$.post(Sms.generateURL('/set/msglimit'),
|
||||
{
|
||||
'limit': self.messageLimit
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
sendCountry: function () {
|
||||
$.post(Sms.generateURL('/set/country'),
|
||||
{
|
||||
'country': $('select[name=intl_phone]').val()
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
// This function should be moved to a renderer or something else
|
||||
updateView: function () {
|
||||
$('#sel_intl_phone').val(this.country);
|
||||
|
||||
Reference in New Issue
Block a user