Browse files

Add support for JQuery 1.8.2

  • Loading branch information...
1 parent 237d9c4 commit c8ab3ddccfc69ba8adb2e2eecc568b3d93827f6b @arashi01 arashi01 committed Nov 2, 2012
Showing with 9,464 additions and 2 deletions.
  1. +3 −2 README.md
  2. +9,440 −0 src/main/resources/toserve/jquery/1.8.2/js/jquery.js
  3. +21 −0 src/main/scala/net/liftmodules/JQueryModule.scala
View
5 README.md
@@ -3,8 +3,9 @@ lift-jquery-module
A Lift JQuery Module currently supporting
-- JQurey v1.7.2
-- JQurey v1.7.1
+- JQuery v1.8.2
+- JQuery v1.7.2
+- JQuery v1.7.1
- JQuery v1.6.4
**Current module version:** 1.0
View
9,440 src/main/resources/toserve/jquery/1.8.2/js/jquery.js
9,440 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
21 src/main/scala/net/liftmodules/JQueryModule.scala
@@ -50,6 +50,20 @@ package object JQueryModule {
}
/**
+ * Enable usage of JQuery version 1_8_2 in your bootstrap liftweb Boot.
+ * @version 1.8.2
+ *
+ * '''Example:'''
+ *
+ * {{{
+ * JQueryModule.InitParam.JQuery=JQueryModule.JQuery182
+ * }}}
+ */
+ case object JQuery182 extends JQModule {
+ ModuleResources.jquery182
+ }
+
+ /**
* Enable usage of JQuery version 1_7_2 in your bootstrap liftweb Boot.
* @version 1.7.2
*
@@ -97,6 +111,13 @@ package object JQueryModule {
*/
private object ModuleResources {
+ lazy val jquery182 = {
+ ResourceServer.rewrite {
+ case "jquery.js" :: Nil if Props.devMode => List("jquery", "1.8.2", "js", "jquery.js")
+ case "jquery.js" :: Nil => List("jquery", "1.8.2", "js", "jquery-min.js")
+ }
+ }
+
lazy val jquery172 = {
ResourceServer.rewrite {
case "jquery.js" :: Nil if Props.devMode => List("jquery", "1.7.2", "js", "jquery.js")

0 comments on commit c8ab3dd

Please sign in to comment.