def javascript_confirm(url, js_msg, abort_on):
 log.js.debug('confirm: {}'.format(js_msg))
 if config.get('ui', 'modal-js-dialog'):
  raise CallSuper
 msg = 'From <b>{}</b>:<br/>{}'.format(html.escape(url.toDisplayString()), html.escape(js_msg))
 ans = message.ask('Javascript confirm', msg, mode=usertypes.PromptMode.yesno, abort_on=abort_on)
 return bool(ans)

def javascript_confirm ( url , js_msg , abort_on ) : log . js . debug ( 'confirm: {}' . format ( js_msg ) ) if config . get ( 'ui' , 'modal-js-dialog' ) : raise CallSuper msg = 'From <b>{}</b>:<br/>{}' . format ( html . escape ( url . toDisplayString ( ) ) , html . escape ( js_msg ) ) ans = message . ask ( 'Javascript confirm' , msg , mode = usertypes . PromptMode . yesno , abort_on = abort_on ) return bool ( ans )
display a javascript confirm prompt .