Permalink
Browse files

embedded makes sure we're not pid=true

  • Loading branch information...
1 parent 047d8bb commit c2e5ad8d04dbf19257d544c2976adf777c1c2f58 Danny Yoo committed Jan 31, 2012
Showing with 9 additions and 2 deletions.
  1. +3 −1 war/openEditor/index.jsp
  2. +6 −1 war/test-xdm.html
View
@@ -146,7 +146,9 @@
<%
if (request.getParameter("embedded") != null &&
- request.getParameter("embedded").equals("true")) {
+ request.getParameter("embedded").equals("true") &&
+ // embedded mode is not allowed when pid has been provided.
+ request.getParameter("pid") == null) {
isEmbedded = true;
}
%>
View
@@ -18,7 +18,12 @@
props: {style: {width: "100%", height: "100%"}},
},
{remote : { run : {},
- requestBreak : {} }});
+ requestBreak : {},
+ setDefinitionsText : {},
+ getDefinitionsText : {}}});
+rpc.setDefinitionsText("\"testing one two three\"",
+ function() {
+ });
</script>
<body>

0 comments on commit c2e5ad8

Please sign in to comment.