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

migrate all remaining settings setters

This commit is contained in:
Loic Blot
2017-12-28 18:51:57 +01:00
parent 8f017bc20a
commit 2b6e52205e
3 changed files with 24 additions and 21 deletions
+21 -1
View File
@@ -33,6 +33,10 @@ var SmsSettings = {
},
sendMessageLimit: function () {
if (this.messageLimit === null) {
return;
}
var self = this;
$.post(Sms.generateURL('/set/msglimit'),
{
@@ -40,7 +44,23 @@ var SmsSettings = {
}
);
},
sendNotificationFlag: function () {
var self = this;
$.post(Sms.generateURL('/set/notification_state'),
{
'notification': self.enableNotifications ? 1 : 0
}
);
},
sendContactOrder: function () {
var self = this;
$.post(Sms.generateURL('/set/contact_order'),
{
'attribute': self.contactOrderBy,
'reverse': self.reverseContactOrder
}
);
},
sendCountry: function () {
$.post(Sms.generateURL('/set/country'),
{