Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add JsCmd.Reload to force reload of current page

  • Loading branch information...
commit 81062214e91b009d74ea62c1639e502ded3fc504 1 parent d0baf2e
@jeppenejsum jeppenejsum authored dpp committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 web/webkit/src/main/scala/net/liftweb/http/js/JsCommands.scala
View
8 web/webkit/src/main/scala/net/liftweb/http/js/JsCommands.scala
@@ -870,6 +870,14 @@ object JsCmds {
/**
+ * Reload the current page
+ */
+ case object Reload extends JsCmd {
+ def toJsCmd = "window.location.reload();"
+ }
+
+
+ /**
* Update a Select with new Options
*/
case class ReplaceOptions(select: String, opts: List[(String, String)], dflt: Box[String]) extends JsCmd {
Please sign in to comment.
Something went wrong with that request. Please try again.