Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

afterDone is not firing? #109

Open
mpiontek opened this issue Apr 15, 2017 · 3 comments
Open

afterDone is not firing? #109

mpiontek opened this issue Apr 15, 2017 · 3 comments

Comments

@mpiontek
Copy link

Hey guys,

i try to revalidate a clockpicker after input. But it seems, that the documented "afterDone" Event (i tried others too) is not firing:

$('.assign-clockpicker').clockpicker().on("afterDone", function() { var parentId = $(this).closest('form').attr("id"); if ( $(this).is('input') ) { var fieldName = $(this).attr('name'); } else { var fieldName = $(this).find('input').attr('name'); } $("#" + parentId).bootstrapValidator('revalidateField', fieldName); console.log(parentId); console.log(fieldName); });

If i switch the event with "change", the input gets revalidated (as expected) on value change. So for me this is a solution - i just wanted to give this fact to you, because i expected another behaviour.

@brubbel
Copy link

brubbel commented Mar 16, 2018

It works, but only with the latest git version, not the zipped one.

@ToraTengu
Copy link

Complementing @brubbel statement, the CDN provided by Cloudflare isn't also up to date...
Link directly to the dist provided by the weareoutman site

@gierg
Copy link

gierg commented Mar 16, 2020

is still outofdate? i cant find "afterDone" function on jquery.clockpicker.min.js, i was installed from npm with command npm install clockpicker@latest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants