Skip to content

Commit

Permalink
Closes #1150
Browse files Browse the repository at this point in the history
  • Loading branch information
andreak committed Nov 9, 2011
1 parent 52dcc2b commit 6869755
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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")
))
Expand Down

0 comments on commit 6869755

Please sign in to comment.