Created
May 21, 2014 05:18
-
-
Save fmpwizard/4740bd5d03fd7e93b000 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diego@diego-HP-EliteBook-8460p:~/work/lift/helping/LiftQuestionAjaxCheckbox$ git diff | |
diff --git a/project/plugins.sbt b/project/plugins.sbt | |
index 3f5d4d0..1d291b1 100644 | |
--- a/project/plugins.sbt | |
+++ b/project/plugins.sbt | |
@@ -1,4 +1,5 @@ | |
-addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.9.0") | |
+addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.5.0") | |
+ | |
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.1") | |
diff --git a/src/main/scala/com/jpswain/liftexample/snippet/Index.scala b/src/main/scala/com/jpswain/liftexample/snippet/Index.scala | |
index 7983e2b..bfdabf8 100644 | |
--- a/src/main/scala/com/jpswain/liftexample/snippet/Index.scala | |
+++ b/src/main/scala/com/jpswain/liftexample/snippet/Index.scala | |
@@ -42,6 +42,7 @@ class Index extends StatefulSnippet with Logger { | |
info("checkbox=" + result) | |
// TODO help - i can't figure out how to refresh "outer" or "one" here | |
theCheckboxState = result | |
+ outer.setHtml() | |
}) & | |
"@the_message *" #> { if (theCheckboxState) "Checkbox is YES" else "Checkbox is NO" } & | |
"button [onclick]" #> SHtml.ajaxInvoke(one.setHtml _)) & // redraw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment