diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 11:03:46 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-12-09 11:03:46 +0300 |
commit | d0fafe8b8fa52163209a9179f16d6910af4e3050 (patch) | |
tree | bf0195ac7baffc337465c13cb7679d21e41f6afe | |
parent | e8baf351d98fa5c6a129f579fc9f13c14e005513 (diff) |
Disabling embed flash as it doesn't load the data from piwik.org/demo
-rw-r--r-- | plugins/Widgetize/templates/widgetize.js | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/plugins/Widgetize/templates/widgetize.js b/plugins/Widgetize/templates/widgetize.js index 12841e496d..f596c4bbb8 100644 --- a/plugins/Widgetize/templates/widgetize.js +++ b/plugins/Widgetize/templates/widgetize.js @@ -67,25 +67,26 @@ function widgetize() '</div>' ); - // Add the Flash Export if a flash <embed> is found in the widget - $(loadedWidgetElement) - .find('embed,object') - .each(function() { - var htmlEmbed = $(this).parent().html(); - - htmlEmbed = htmlEmbed.replace(/ (data=")/, ' $1' + unescape(piwik.piwik_url)); - htmlEmbed = htmlEmbed.replace(/ (value=")x-(data-file=)/, ' $1$2' + piwik.piwik_url + 'index.php'); - - $(exportButtonsElement).append( - '<div id="embedThisWidgetFlash">'+ - '<label for="embedThisWidgetFlashInput">› Embed Flash</label>'+ - '<span id="embedThisWidgetFlashInput">'+ - self.getInputFormWithHtml('flashEmbed', htmlEmbed) + - '</span>'+ - '</div>' - ); - }); - + if(false) { + // Add the Flash Export if a flash <embed> is found in the widget + $(loadedWidgetElement) + .find('embed,object') + .each(function() { + var htmlEmbed = $(this).parent().html(); + + htmlEmbed = htmlEmbed.replace(/ (data=")/, ' $1' + unescape(piwik.piwik_url)); + htmlEmbed = htmlEmbed.replace(/ (value=")x-(data-file=)/, ' $1$2' + piwik.piwik_url + 'index.php'); + + $(exportButtonsElement).append( + '<div id="embedThisWidgetFlash">'+ + '<label for="embedThisWidgetFlashInput">› Embed Flash</label>'+ + '<span id="embedThisWidgetFlashInput">'+ + self.getInputFormWithHtml('flashEmbed', htmlEmbed) + + '</span>'+ + '</div>' + ); + }); + } // 0.5: Removing launchpad feature as it doesn't seem to work well despite us contacting Clearspring if(false) { $(exportButtonsElement).append( |