Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (Speak) {
- Speak.pageCode(["sitecore", "jquery", "arcwaveUtils"], function (sitecore, $, Utils) {
- return {
- initialized: function () {
- // your code for initialized
- },
- triggerSiteCreator: function () {
- var app = this;
- app.SiteGeneratorFrame.set("sourceUrl", "");
- $.ajax({
- type: "GET",
- dataType: "json",
- url: "/api/arcwave/sitecreator",
- cache: false,
- success: function (data) {
- app.SiteGeneratorFrame.set("sourceUrl", data);
- },
- error: function () {
- console.log("There was an error. Try again please!");
- }
- });
- }
- }
- });
- }) (Sitecore.Speak);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement