Advertisement
Guest User

Untitled

a guest
Apr 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. (function (Speak) {
  2.  
  3. Speak.pageCode(["sitecore", "jquery", "arcwaveUtils"], function (sitecore, $, Utils) {
  4.  
  5. return {
  6. initialized: function () {
  7. // your code for initialized
  8. },
  9. triggerSiteCreator: function () {
  10.  
  11. var app = this;
  12.  
  13. app.SiteGeneratorFrame.set("sourceUrl", "");
  14.  
  15. $.ajax({
  16. type: "GET",
  17. dataType: "json",
  18. url: "/api/arcwave/sitecreator",
  19. cache: false,
  20. success: function (data) {
  21. app.SiteGeneratorFrame.set("sourceUrl", data);
  22. },
  23. error: function () {
  24. console.log("There was an error. Try again please!");
  25. }
  26. });
  27. }
  28. }
  29. });
  30. }) (Sitecore.Speak);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement