diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-asset-finder/source/js/asset_content_finder.js b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-asset-finder/source/js/asset_content_finder.js index 82c1328..ec62918 100755 --- a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-asset-finder/source/js/asset_content_finder.js +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-asset-finder/source/js/asset_content_finder.js @@ -4,7 +4,7 @@ CONTENT_FINDER_NAME = 'Brightcove Videos'; // Get Brightcove Videos Asset Path from OSGI Config - $.getJSON("/bin/brightcove/getBrightcoveAssetPath.json").done(function(data){ + $.getJSON(Granite.HTTP.externalize("/bin/brightcove/getBrightcoveAssetPath.json")).done(function(data){ assetPath = data["brightcoveAssetPath"]; getBrightcoveAssetsPath(assetPath); diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/dynamic_dropdown.js b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/dynamic_dropdown.js index 2da6c1f..2f0bbad 100755 --- a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/dynamic_dropdown.js +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/dynamic_dropdown.js @@ -37,7 +37,7 @@ var ACTION = 'playlists'; var CONDITION = ( $(DIALOG_PLAYLIST_FIELD_SELECTOR).length > 0 ) ? existingValues.videoPlayerPL : existingValues.videoPlayer; - $.getJSON("/bin/brightcove/getLocalVideoList.json", { + $.getJSON(Granite.HTTP.externalize("/bin/brightcove/getLocalVideoList.json"), { source: ACTION, account_id: account_id }).done(function(data) { @@ -87,7 +87,7 @@ accountSelector.addEventListener('coral-select:showitems', function(event) { accountSelector.items.clear(); if (accountSelector.items.length == 0) { - $.getJSON("/bin/brightcove/accounts.json").done(function(data) { + $.getJSON(Granite.HTTP.externalize("/bin/brightcove/accounts.json")).done(function(data) { var accounts = data.accounts; event.preventDefault(); accounts.forEach(function(value, index) { @@ -126,7 +126,7 @@ ? accountSelector.selectedItem.value : ""; if (playerSelector.items.length == 0) { - $.getJSON("/bin/brightcove/getLocalVideoList.json", { + $.getJSON(Granite.HTTP.externalize("/bin/brightcove/getLocalVideoList.json"), { source: 'players', account_id: account_id }).done(function(data) { diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/experiences.js b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/experiences.js index 93cd6ec..89744e9 100644 --- a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/experiences.js +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/brightcove-author-widget/source/js/experiences.js @@ -36,7 +36,7 @@ accountSelector.addEventListener('coral-select:showitems', function(event) { if (accountSelector.items.length == 0) { - $.getJSON("/bin/brightcove/accounts.json").done(function(data) { + $.getJSON(Granite.HTTP.externalize("/bin/brightcove/accounts.json")).done(function(data) { var accounts = data.accounts; var selected; event.preventDefault(); diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js index 5b6a014..9d1b30e 100644 --- a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/page/brightcoveplayer/clientlib/listener.js @@ -56,7 +56,7 @@ $("[role='option']",playerID._selectList).remove(); var x = $("[name='./playerID']").closest(".coral-Select").find('option').remove().end(); - $.getJSON("/bin/brightcove/api?a=players&account_id="+selectedAccount).done(function(data){ + $.getJSON(Granite.HTTP.externalize("/bin/brightcove/api?a=players&account_id="+selectedAccount)).done(function(data){ _.each(data.items, function(value, id) { var test2 = $("[name='./playerID']")[0]; $("