Files
doneit-web/src/assets/js/wldirectudpate.js
T
2021-04-07 09:13:07 +01:00

22 lines
592 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(
'Custom dialog body text',
// Handle dialog buttons.
function(buttonIndex) {
if (buttonIndex == 1) {
directUpdateContext.start();
} else {
wl_directUpdateChallengeHandler.submitFailure();
}
},
'Custom dialog title text',
['Update']
);
};
}