You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2013/07/20 01:09:36 UTC
[2/4] git commit: Restore t5/core/fields:showValidationError which
was incorrectly removed
Restore t5/core/fields:showValidationError which was incorrectly removed
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/0acc96d4
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/0acc96d4
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/0acc96d4
Branch: refs/heads/master
Commit: 0acc96d400dd97c303176aa0d32817b2ee61ba42
Parents: cba4eea
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Fri Jul 19 15:58:38 2013 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Fri Jul 19 15:58:38 2013 -0700
----------------------------------------------------------------------
.../main/coffeescript/META-INF/modules/t5/core/fields.coffee | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/0acc96d4/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/fields.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/fields.coffee b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/fields.coffee
index 2846f91..da60ffa 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/fields.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/fields.coffee
@@ -89,6 +89,9 @@ define ["underscore", "./events", "./dom", "./utils", "./forms"],
return block
+ showValidationError = (id, message) ->
+ dom.wrap(id).trigger events.field.showValidationError, { message }
+
collectOptionValues = (wrapper) ->
_.pluck wrapper.element.options, "value"
@@ -169,4 +172,4 @@ define ["underscore", "./events", "./dom", "./utils", "./forms"],
group and group.addClass "error"
- exports = {findHelpBlock, createHelpBlock}
\ No newline at end of file
+ exports = {findHelpBlock, createHelpBlock, showValidationError}
\ No newline at end of file