mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
22 lines
599 B
JavaScript
22 lines
599 B
JavaScript
|
|
function wlCommonInit(){
|
||
|
|
// Override the default Direct Update interface.
|
||
|
|
|
||
|
|
//uncomment below function to get custom DU
|
||
|
|
wl_directUpdateChallengeHandler.handleDirectUpdate = function(directUpdateData, directUpdateContext) {
|
||
|
|
// Create a dialog.
|
||
|
|
navigator.notification.confirm(
|
||
|
|
'Actualização Disponivel',
|
||
|
|
// Handle dialog buttons.
|
||
|
|
function(buttonIndex) {
|
||
|
|
if (buttonIndex == 1) {
|
||
|
|
directUpdateContext.start();
|
||
|
|
} else {
|
||
|
|
wl_directUpdateChallengeHandler.submitFailure();
|
||
|
|
}
|
||
|
|
},
|
||
|
|
'Actualização Disponivel',
|
||
|
|
['Actualizar']
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|