contributte / live-form-validation

:no_entry: Nice client-side live form validation for Nette Forms.
https://contributte.org/packages/contributte/live-form-validation.html
BSD 3-Clause "New" or "Revised" License
59 stars 24 forks source link

Another font for icons #9

Closed landsman closed 8 years ago

landsman commented 8 years ago

Hi,

i am tring change font of icon by class, but not working:

<script type="text/javascript" src="../system/vendor/nette/forms/src/assets/live-form-validation.js">
<script type="text/javascript">

    LiveForm.setOptions({
        messageErrorPrefix: '&nbsp;<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>&nbsp;'
    });

</script>

Is right? Thanks

Robyer commented 8 years ago

Hi, I think that should work. What's the real result? Some error or it uses original prefix? Or...?

landsman commented 8 years ago

Yea, it show original Options, without change.

Robyer commented 8 years ago

I tried it in my test project and it works correctly. Are you sure you have most recent version? Download e.g. from https://github.com/Robyer/nette-live-form-validation/archive/v1.6.1.zip

landsman commented 8 years ago

Thanks, i was have 1.5.x version. Now it works.