saribe / eModal

Easy Modal for bootstrap, is a simple way to create modal dialogs using javascript.
http://saribe.github.io/eModal
271 stars 97 forks source link

emodal.prompt not working on Internet Explorer 11 #64

Closed gsdiama closed 7 years ago

gsdiama commented 7 years ago

Hi everybody,

I'm using an eModal.prompt to after ask for an info in a textfield to the user to get the input and use it.

The code is this, that works like a charm in Chrome but in Internet Explorer is not working:

eModal.prompt(lang.message, lang.grupo_nuevo_nombre, nombre).then(value => call_to_change(value, parametros));

The Internet Explorer 11 says:

Script 1002: Syntax error

I would much appreciate if you could help me.

Thanks in advance

gsdiama commented 7 years ago

The error seems to be related to the =>

Thanks again

gsdiama commented 7 years ago

Hi everybody,

Finally I fixed myself; the error has nothing to do with eModal. I saw that Internet Explorer 11 does not support javascript arrow functions, so I changed to:

eModal.prompt(lang.message, lang.grupo_nuevo_nombre, nombre).then( function (value) { call_to_change(value, parametros) });

Thanks anyway