Created
February 9, 2013 00:11
-
-
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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