Refactor options page and style using bootstrap
This commit is contained in:
parent
81e4af5827
commit
2bd77693e1
6 changed files with 8676 additions and 227 deletions
10
js/api.js
10
js/api.js
|
@ -117,13 +117,19 @@ window.textsecure.api = function() {
|
|||
});
|
||||
};
|
||||
|
||||
self.requestVerificationCode = function(number) {
|
||||
function requestVerificationCode(number, transport) {
|
||||
return doAjax({
|
||||
call : 'accounts',
|
||||
httpType : 'GET',
|
||||
urlParameters : '/sms/code/' + number,
|
||||
urlParameters : '/' + transport + '/code/' + number,
|
||||
});
|
||||
};
|
||||
self.requestVerificationSMS = function(number) {
|
||||
return requestVerificationCode(number, 'sms');
|
||||
};
|
||||
self.requestVerificationVoice = function(number) {
|
||||
return requestVerificationCode(number, 'voice');
|
||||
};
|
||||
|
||||
self.confirmCode = function(number, code, password,
|
||||
signaling_key, registrationId, single_device) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue