From 191a6a575c5f143bd71de4beab4eb2b7d8a8ddf4 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 22 May 2014 11:18:39 +0200 Subject: [PATCH] Renamed export JS variable because it's reserved in some browsers. --- js/h5p-embed.js | 2 +- js/h5p.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/h5p-embed.js b/js/h5p-embed.js index b94fd29..bab6cc7 100644 --- a/js/h5p-embed.js +++ b/js/h5p-embed.js @@ -113,7 +113,7 @@ var H5P = H5P || (function () { library: content.library, jsonContent: content.params, fullScreen: content.fullscreen, - export: content.export, + exportUrl: content.exportUrl, embedCode: content.embedCode }; }, diff --git a/js/h5p.js b/js/h5p.js index f0574b5..e0320dd 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -64,10 +64,10 @@ H5P.init = function () { }; var $actions = H5P.jQuery(''); - if (contentData.export !== '') { + if (contentData.exportUrl !== '') { // Display export button H5P.jQuery('
  • ' + H5P.t('download') + '
  • ').appendTo($actions).click(function () { - window.location.href = contentData.export; + window.location.href = contentData.exportUrl; }); } if (instance.getCopyrights !== undefined) {