mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Direct Update working
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
function wlCommonInit() {
|
||||
|
||||
WLAuthorizationManager.obtainAccessToken()
|
||||
|
||||
.then(
|
||||
|
||||
function (accessToken) {
|
||||
alert('Index sucsse: ', accessToken)
|
||||
|
||||
},
|
||||
|
||||
function (error) {
|
||||
alert('Index error: ', error)
|
||||
|
||||
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -5,7 +5,7 @@ function wlCommonInit(){
|
||||
wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext) {
|
||||
// Create a dialog.
|
||||
navigator.notification.confirm(
|
||||
'Custom dialog body text',
|
||||
'Actualização Disponivel',
|
||||
// Handle dialog buttons.
|
||||
function(buttonIndex) {
|
||||
if (buttonIndex == 1) {
|
||||
@@ -14,8 +14,8 @@ function wlCommonInit(){
|
||||
wl_directUpdateChallengeHandler.submitFailure();
|
||||
}
|
||||
},
|
||||
'Custom dialog title text',
|
||||
['Update']
|
||||
'ctualização Disponivel',
|
||||
['Actualizar']
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user