Jump to content

Strange error on TUniSweetAlert.


Tokay

Recommended Posts

In one of our projects I get strange message dialog when I try to use TUniSweetAlert:

AJax error:

Cannot read property 'constructor' of undefined
var sw;sw=swal({title:"Title",text:"",type:"success",width:480,padding:20,background:"",animation:true,showCancelButton:false,confirmButtonText:"OK",cancelButtonText:"Cancel",buttonsStyling:true,reverseButtons:false,focusCancel:false,showCloseButton:false,inputPlaceholder:"",inputValue:"",inputAutoTrim:true});sw.then(function(p){ajaxRequest(O190,"confirm",{input: (Ext.isString(p)?p:"")})},function(d){ajaxRequest(O190,"dismiss",{dismiss: d})});

I just put TUniSweetAlert on the form and run it as sa.Execute;

In other project all works fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...