Skip to content

Commit 1579c8e

Browse files
committed
Fix #640 WebJars: Update jQuery 3.1.0 to 3.1.1
1 parent e512260 commit 1579c8e

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

CHANGELOG.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
Update JSON4S from 3.4.0 to 3.4.1
1111
* `#639 <https://github.com/xitrum-framework/xitrum/issues/639>`_
1212
Update metrics-scala from 3.5.4_a2.3 to 3.5.5_a2.3
13+
* `#640 <https://github.com/xitrum-framework/xitrum/issues/640>`_
14+
WebJars: Update jQuery 3.1.0 to 3.1.1
1315

1416
3.28.0:
1517

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ libraryDependencies <+= scalaVersion { sv => "org.scala-lang" % "scalap" % sv }
9696

9797
// WebJars ---------------------------------------------------------------------
9898

99-
libraryDependencies += "org.webjars.bower" % "jquery" % "3.1.0"
99+
libraryDependencies += "org.webjars.bower" % "jquery" % "3.1.1"
100100
libraryDependencies += "org.webjars.bower" % "jquery-validation" % "1.15.1"
101101
libraryDependencies += "org.webjars.bower" % "sockjs-client" % "1.1.1"
102102
libraryDependencies += "org.webjars.bower" % "swagger-ui" % "2.1.8-M1"

src/main/scala/xitrum/action/Url.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import xitrum.etag.Etag
77

88
object Url {
99
/**
10-
* Ex: publicUrl("jquery/3.1.0/dist/jquery.js")
10+
* Ex: publicUrl("jquery/3.1.1/dist/jquery.js")
1111
*
1212
* @param path Relative to the "public" directory, without leading "/"
1313
*/
@@ -24,7 +24,7 @@ object Url {
2424
}
2525

2626
/**
27-
* Ex: publicUrl("jquery/3.1.0/dist/jquery.js", "jquery/3.1.0/dist/jquery.min.js")
27+
* Ex: publicUrl("jquery/3.1.1/dist/jquery.js", "jquery/3.1.1/dist/jquery.min.js")
2828
*
2929
* @param devPath File path to use in development mode, relative to the "public" directory, without leading "/"
3030
* @param prodPath File path to use in production mode, relative to the "public" directory, without leading "/"
@@ -35,7 +35,7 @@ object Url {
3535
}
3636

3737
/**
38-
* Ex: publicUrl("jquery/3.1.0/dist", "jquery.js", "jquery.min.js")
38+
* Ex: publicUrl("jquery/3.1.1/dist", "jquery.js", "jquery.min.js")
3939
*
4040
* @param directory Relative to the "public" directory, without leading "/"
4141
* @param devFile File in the directory to use in development mode
@@ -58,7 +58,7 @@ object Url {
5858
}
5959

6060
/**
61-
* Ex: webJarsUrl("jquery/3.1.0/dist/jquery.js", "jquery/3.1.0/dist/jquery.min.js")
61+
* Ex: webJarsUrl("jquery/3.1.1/dist/jquery.js", "jquery/3.1.1/dist/jquery.min.js")
6262
*
6363
* @param devPath File path to use in development mode
6464
* @param prodPath File path to use in production mode
@@ -69,7 +69,7 @@ object Url {
6969
}
7070

7171
/**
72-
* Ex: webJarsUrl("jquery/3.1.0/dist", "jquery.js", "jquery.min.js")
72+
* Ex: webJarsUrl("jquery/3.1.1/dist", "jquery.js", "jquery.min.js")
7373
*
7474
* @param devFile File in the directory to use in development mode
7575
* @param prodFile File in the directory to use in production mode
@@ -120,22 +120,22 @@ trait Url {
120120
//----------------------------------------------------------------------------
121121

122122
/**
123-
* Ex: publicUrl("jquery/3.1.0/dist/jquery.js")
123+
* Ex: publicUrl("jquery/3.1.1/dist/jquery.js")
124124
*
125125
* @param path Relative to the "public" directory, without leading "/"
126126
*/
127127
def publicUrl(path: String) = Url.publicUrl(path)
128128

129129
/**
130-
* Ex: publicUrl("jquery/3.1.0/dist/jquery.js", "jquery/3.1.0/dist/jquery.min.js")
130+
* Ex: publicUrl("jquery/3.1.1/dist/jquery.js", "jquery/3.1.1/dist/jquery.min.js")
131131
*
132132
* @param devPath File path to use in development mode, relative to the "public" directory, without leading "/"
133133
* @param prodPath File path to use in production mode, relative to the "public" directory, without leading "/"
134134
*/
135135
def publicUrl(devPath: String, prodPath: String) = Url.publicUrl(devPath, prodPath)
136136

137137
/**
138-
* Ex: publicUrl("jquery/3.1.0/dist", "jquery.js", "jquery.min.js")
138+
* Ex: publicUrl("jquery/3.1.1/dist", "jquery.js", "jquery.min.js")
139139
*
140140
* @param directory Relative to the "public" directory, without leading "/"
141141
* @param devFile File in the directory to use in development mode
@@ -147,15 +147,15 @@ trait Url {
147147
def webJarsUrl(path: String) = Url.webJarsUrl(path)
148148

149149
/**
150-
* Ex: webJarsUrl("jquery/3.1.0/dist/jquery.js", "jquery/3.1.0/dist/jquery.min.js")
150+
* Ex: webJarsUrl("jquery/3.1.1/dist/jquery.js", "jquery/3.1.1/dist/jquery.min.js")
151151
*
152152
* @param devPath File path to use in development mode
153153
* @param prodPath File path to use in production mode
154154
*/
155155
def webJarsUrl(devPath: String, prodPath: String) = Url.webJarsUrl(devPath, prodPath)
156156

157157
/**
158-
* Ex: webJarsUrl("jquery/3.1.0/dist", "jquery.js", "jquery.min.js")
158+
* Ex: webJarsUrl("jquery/3.1.1/dist", "jquery.js", "jquery.min.js")
159159
*
160160
* @param devFile File in the directory to use in development mode
161161
* @param prodFile File in the directory to use in production mode

src/main/scala/xitrum/view/Js.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ trait JsRenderer {
3333
val validateI18n = if (locale.getLanguage == "en") "" else (<script type="text/javascript" src={webJarsUrl(s"jquery-validation/1.15.1/src/localization/messages_${locale.toString}.js")}></script>)
3434

3535
<xml:group>
36-
<script type="text/javascript" src={webJarsUrl("jquery/3.1.0/dist", "jquery.js", "jquery.min.js")}></script>
36+
<script type="text/javascript" src={webJarsUrl("jquery/3.1.1/dist", "jquery.js", "jquery.min.js")}></script>
3737
<script type="text/javascript" src={webJarsUrl("jquery-validation/1.15.1/dist", "jquery.validate.js", "jquery.validate.min.js")}></script>
3838
<script type="text/javascript" src={webJarsUrl("jquery-validation/1.15.1/dist", "additional-methods.js", "additional-methods.min.js")}></script>
3939
{validateI18n}

0 commit comments

Comments
 (0)