New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将 markdown 编辑器换成 simditor ,jquery.validate 没办法验证输入框 #39

tiseheaini opened this Issue Aug 19, 2014 · 0 comments


None yet
1 participant

tiseheaini commented Aug 19, 2014

将 markdown 编辑器换成 simditor ,jquery.validate 可以检测 comment[body] 不为空,并且能正确给出 不能为空字符 的提示,可当我在输入框中继续输入内容后,错误消息没有正确消失,在 mrakdown 编辑器中没有出现这个问题
看了 jquery.validate 源码,小弟太挫,看不懂原理 文件里打 console.log 输出,貌似是 unhighlight 没有执行。

  highlight: (element) ->
    console.log "highlight puts"
    $(element).closest(".form-group").addClass "has-error"

  unhighlight: (element) ->
    console.log "unhighlight puts"
    $(element).closest(".form-group").removeClass "has-error"

在源码里也找不到哪里在运行了这段逻辑,请大家帮忙看一下。我 fork 的项目地址 rm-markdown 分支

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment