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

Try to migrate some settings send function

This commit is contained in:
Loic Blot
2017-12-28 18:42:51 +01:00
parent 6e21e47bf2
commit 8f017bc20a
4 changed files with 20 additions and 12 deletions
+17
View File
@@ -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);