bug fix with lifecycle

legacy
Steve L. Nyemba 4 years ago
parent 5318e7b292
commit b8db0b5caa

@ -180,7 +180,7 @@
}
}
checkout.dialog = function(title,message,type){
ICONS = {'WARN':'fas fa-exclamation-triangle','CHECK':'fas fa-check fa-2x','PROGRESS':'fas fa-cog fa-spin'}
ICONS = {'WARN':'fas fa-exclamation-triangle','CHECK':'fas fa-check fa-3x','PROGRESS':'fas fa-cog fa-spin'}
var uri = ([sessionStorage.context,'/ui/dialog']).join('')
var info = {title:title,message:message,icon:ICONS[type],type:type}
var httpclient = HttpClient.instance()
@ -242,6 +242,13 @@
if(x.status == 200){
TYPE='CHECK'
TITLE = ''
jx.utils.patterns.visitor($('input'),function(_input){
$(_input).val('')
$(_input).attr('disabled',true)
})
sessionStorage.customer = JSON.stringify({info:{}})
}else{
TITLE='.::'
TYPE='WARN'
@ -313,7 +320,7 @@
</div>
</div>
<div class="currency" style="display:grid; align-items:center" align="left"></div>
<div class="currency bold" style="padding:4px; display:grid; align-items:center" align="left"></div>
</div>

Loading…
Cancel
Save