Skip to content

Commit

Permalink
Rendering the AJAX template when event-based page refresh is requested.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmihajlovski committed Nov 8, 2016
1 parent 44a126b commit 361dd39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rapidoid-gui/src/main/java/org/rapidoid/gui/HtmlPage.java
Expand Up @@ -66,7 +66,8 @@ public String render() {
}

String html;
if (ReqInfo.get().isGetReq()) {
IReqInfo req = ReqInfo.get();
if (req.isGetReq() && req.params().get("__event__") == null) {
html = PAGE_TEMPLATE.render(model);
} else {
html = PAGE_AJAX_TEMPLATE.render(model);
Expand Down

0 comments on commit 361dd39

Please sign in to comment.