Skip to content

Instantly share code, notes, and snippets.

@fmpwizard
Created November 8, 2014 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmpwizard/8545784db218db48fb1c to your computer and use it in GitHub Desktop.
Save fmpwizard/8545784db218db48fb1c to your computer and use it in GitHub Desktop.
+++ b/src/main/scala/net/liftmodules/widgets/tree/TreeView.scala
@@ -22,8 +22,7 @@ import _root_.scala.xml._
import _root_.net.liftweb.util.Helpers._
import _root_.net.liftweb.common.{Box, Full, Empty}
import _root_.net.liftweb.http.S._
-import _root_.net.liftweb.http.LiftRules
-import _root_.net.liftweb.http.{LiftResponse, JsonResponse}
+import net.liftweb.http.{S, LiftRules, LiftResponse, JsonResponse}
import _root_.net.liftweb.http.js._
import _root_.net.liftweb.http.js.jquery._
import JsCmds._
@@ -118,7 +117,7 @@ class TreeView {
fmapFunc(NFuncHolder(treeFunc)){key =>
val url = encodeURL(contextPath +
- "/"+LiftRules.ajaxPath)+"?"+key+"=_"
+ "/"+LiftRules.liftPath + "/ajax/"+ S.renderVersion)+"?"+key+"=_"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment