Skip to content

Instantly share code, notes, and snippets.

@phusick
Created February 9, 2013 00:11
Show Gist options
  • Save phusick/4743081 to your computer and use it in GitHub Desktop.
Save phusick/4743081 to your computer and use it in GitHub Desktop.
Creating three instances of the CMS application (two of them i a dialog window).
require([ './EntryPoint', 'dijit/Dialog', 'dojo/domReady!' ],
function (EntryPoint, Dialog) {
app.entryPoint = new EntryPoint().placeAt(document.body);
app.entryPoint.startup();
launchInDialog(new EntryPoint());
launchInDialog(new EntryPoint());
function launchInDialog(application) {
var placeholder = document.createElement("div");
placeholder.style.width = "800px";
placeholder.style.height = "500px";
var dialog = new Dialog({ content: placeholder });
dialog.startup();
dialog.show();
application.placeAt(placeholder);
application.startup();
return dialog;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment