tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkemn...@apache.org
Subject [1/2] tapestry-5 git commit: TAP5-2440: mixin autocomplete work not correct if user input is required
Date Thu, 09 Apr 2015 12:45:06 GMT
Repository: tapestry-5
Updated Branches:
  refs/heads/master a81ca0c2f -> cf101cce3


TAP5-2440: mixin autocomplete work not correct if user input is required


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/9dec1b42
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/9dec1b42
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/9dec1b42

Branch: refs/heads/master
Commit: 9dec1b429b77b15f5e8ba432bdb4520db72478a9
Parents: a81ca0c
Author: Felix Scheffer <mail@felix-scheffer.de>
Authored: Thu Mar 19 23:45:19 2015 +0100
Committer: Jochen Kemnade <jochen.kemnade@eddyson.de>
Committed: Thu Apr 9 14:43:36 2015 +0200

----------------------------------------------------------------------
 .../coffeescript/META-INF/modules/t5/core/autocomplete.coffee   | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/9dec1b42/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
index 332e945..3043b70 100644
--- a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
+++ b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/autocomplete.coffee
@@ -40,4 +40,9 @@ define ["./dom", "./ajax", "underscore", "jquery", "./utils", "./typeahead"],
         minLength: spec.minChars
         dataset
 
+      # don't validate the "tt-hint" input field created by Typeahead (fix for TAP5-2440)
+      $field.prev(".tt-hint").removeAttr("data-validation data-optionality data-required-message")
+
+      return
+
     exports = init


Mime
View raw message