Skip to content

Commit 17b0113

Browse files
committed
Fixed communication between parent and child window.
1 parent 46d10e3 commit 17b0113

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: views/layout.jade

+3-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ html
117117
});
118118

119119
$("area").click(function() {
120-
$.post("/", { keypadID:this.id }, function(data) {
121-
$("#log").append("\"" + $("#rawshell").val() + "\" send.\n");
120+
var idName = this.id;
121+
$.post("/", { keypadID:idName }, function(data) {
122+
$("#log", window.opener.document).append("\"" + idName + "\" sent.\n");
122123
});
123124
});
124125

0 commit comments

Comments
 (0)