summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-27 11:18:55 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-27 11:18:55 -0700
commit84a50e737b54acbe4a8c47b6038c45cd709c2e7c (patch)
tree56c2cdf1d22a03ea3622f66a727d718b0eada466 /modules
parentf9137c756e325a629dbe3e28ca351871c12477c5 (diff)
Fix the "get flashplayer" button. It was throwing a JS error before.
Not sure why it was done in JS in the first place. Fixes ticket #1256.
Diffstat (limited to 'modules')
-rw-r--r--modules/organize/views/organize_dialog.html.php22
1 files changed, 10 insertions, 12 deletions
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php
index 4e8ada80..4cc6385e 100644
--- a/modules/organize/views/organize_dialog.html.php
+++ b/modules/organize/views/organize_dialog.html.php
@@ -127,16 +127,14 @@
<!-- The following spans are placeholders so we can load the hover and active styles for the flex component -->
<span id="g-organize-hover" /><span id="g-organize-active" />
<h1 style="display:none"><?= t("Organize :: %name", array("name" => html::purify($album->title))) ?></h1>
- <div id="flashContent">
- <p>
- <?= t("To use the Organize feature, please ensure that Adobe Flash Player version %flash_minimum_version " .
- "or greater is installed.", array("flash_minimum_version" => $flash_minimum_version)) ?>
- </p>
- <script type="text/javascript">
- var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
- $("#flashContent").append("<a href='http://www.adobe.com/go/getflashplayer'><img src='" + pageHost +
- "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' " +
- "alt='<?= t("Get Adobe Flash Player") ?>' /></a>" );
- </script>
-</div>
+ <div id="flashContent">
+ <p>
+ <?= t("To use the Organize feature, please ensure that Adobe Flash Player version %flash_minimum_version " .
+ "or greater is installed.", array("flash_minimum_version" => $flash_minimum_version)) ?>
+ </p>
+ <a href="http://www.adobe.com/go/getflashplayer">
+ <img src="<?= request::protocol() ?>://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
+ alt=<?= t("Get Adobe Flash Player")->for_js() ?> />
+ </a>
+ </div>
</div>