Repository: tapestry-5
Updated Branches:
  refs/heads/master c7df1c517 -> 2dd5bb525


TAP5-1886: fix indexOf call


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

Branch: refs/heads/master
Commit: a0a3c068c99d9584ddb30b77306f7b54b5409a18
Parents: c7df1c5
Author: Jochen Kemnade <[email protected]>
Authored: Thu Feb 11 11:39:53 2016 +0100
Committer: Jochen Kemnade <[email protected]>
Committed: Thu Feb 11 11:39:53 2016 +0100

----------------------------------------------------------------------
 .../main/coffeescript/META-INF/modules/t5/core/datefield.coffee    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/a0a3c068/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
----------------------------------------------------------------------
diff --git 
a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee 
b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
index 50cc947..0c0aa6d 100644
--- 
a/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
+++ 
b/tapestry-core/src/main/coffeescript/META-INF/modules/t5/core/datefield.coffee
@@ -34,7 +34,7 @@ define ["./dom", "./events", "./messages", "./ajax", 
"underscore", "./datepicker
     monthsLabels = (messages "date-symbols.months").split ","
     abbreviateWeekDay = (name) -> name.substr(0, 1).toLowerCase()
     locale = (document.documentElement.getAttribute("data-locale")) || "en"
-    if locale.indexOf 'zh' is 0
+    if (locale.indexOf 'zh') is 0
       # TAP5-1886, Chinese weekdays cannot be abbreviated using the first 
character
       abbreviateWeekDay = (name) -> name.substr(name.length-1)
     daysLabels = (abbreviateWeekDay name for name in days)

Reply via email to