Permalink
Browse files

Merge branch 'master' of github.com:lift/framework

  • Loading branch information...
2 parents d644392 + 6869755 commit 102499ee1b75656cef212ff3684aa55cae369cc2 @indrajitr indrajitr committed Nov 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/webkit/src/main/scala/net/liftweb/builtin/snippet/A.scala
View
2 web/webkit/src/main/scala/net/liftweb/builtin/snippet/A.scala
@@ -34,7 +34,7 @@ object A extends DispatchSnippet {
private def addAjaxHREF(): MetaData = {
val ajax: JsExp = SHtml.makeAjaxCall(JE.Str(S.attr.~("key").map(_.text + "=true").getOrElse("")))
- new UnprefixedAttribute("onclick", Text(ajax.toJsCmd),
+ new UnprefixedAttribute("onclick", Text(ajax.toJsCmd + "; return false;"),
new UnprefixedAttribute("href", Text("javascript://"),
S.currentAttrsToMetaData(name => name != "onclick" && name != "href" && name != "key")
))

0 comments on commit 102499e

Please sign in to comment.