handleInitialLoad: function() {
var self = this;
this.activityIndicator.fadeIn(100);
if (typeof(triforceManifestFeed) == 'undefined' || triforceManifestFeed == '') {
var feedURL = window.Triforce.config.manifestFeed + '?url=' + encodeURIComponent(w.location.href);
$.getJSON(feedURL, function(response) {
triforceManifestFeed = response.manifest;
if (triforceManifestFeed === false) {
w.Triforce.getPageLoader().hideActivityIndicator();
w.Triforce.getMediator().trigger('triforce:legacyload');
}
else {
w.Triforce.getMediator().trigger('triforce:pageready');
}
});
return;
}
if (triforceManifestFeed) {
triforceManifestFeed = triforceManifestFeed.manifest;
w.Triforce.getMediator().trigger('triforce:pageready');
}
else {
w.Triforce.getMediator().trigger('triforce:errornomanifest');
}
}
$.getJSON(feedURL, function(response) {
triforceManifestFeed = response.manifest;
if (triforceManifestFeed === false) {
w.Triforce.getPageLoader().hideActivityIndicator();
w.Triforce.getMediator().trigger('triforce:legacyload');
}
else {
w.Triforce.getMediator().trigger('triforce:pageready');
}
});
if (typeof(triforceManifestFeed) == 'undefined'
|| triforceManifestFeed == '') {
if (triforceManifestFeed) {
fetchArcStages: function() {
var self = this,
currentArcStage = this.getCurrentArcStage();
this.elm.find('div.arcStageOverride').append('Arc Stage: <select name="modes.arcStage"></select>');
var arcStagesAvailable = [
{ id:'default',name:'Site Default'},
{ id:'live',name:'Live'},
{ id:'staging',name:'Staging'},
{ id:'authoring',name:'Authoring'}
];
for (var stage in arcStagesAvailable)
{
var selected = '';
if (arcStagesAvailable[stage].id == currentArcStage)
{
selected = ' selected="selected"';
}
self.elm.find('div.arcStageOverride select').append('<option value="' + arcStagesAvailable[stage].id + '"' + selected + '>' + arcStagesAvailable[stage].name + '</option>');
}
}
fetchArcStages: function() {
for (var stage in arcStagesAvailable)
{
var selected = '';
if (arcStagesAvailable[stage].id == currentArcStage)
{
self.elm.find('div.arcStageOverride select').append('<option value="' + arcStagesAvailable[stage].id + '"' + selected + '>' + arcStagesAvailable[stage].name + '</option>');
self.elm.find('div.arcStageOverride select').append('<option value="' + arcStagesAvailable[stage].id + '"' + selected + '>' + arcStagesAvailable[stage].name + '</option>');
var arcStagesAvailable = [
for (var stage in arcStagesAvailable)