diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-16 07:49:17 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-11-16 07:49:17 -0800 |
commit | 14f1fc30b519a49701cbcf49d6df675597cba8d0 (patch) | |
tree | f3aca4759e01bd0305a9a0d7a4690a37257f1d0d /modules | |
parent | 2d6f5cda6c382028ccd75cdd71397da5404bb884 (diff) |
Use some hacky css to get the buttons alighned properly. Fixes ticket #880.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/views/simple_uploader.html.php | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index 10e748b6..80dcc5bc 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -1,4 +1,17 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> +<style> +#g-uploadifyUploader { + left: -50px; + position: relative; + z-index: 100; +} +#g-add-photos-button { + left: 55px; + position: relative; + top: -15px; + z-index: -1; +} +</style> <script type="text/javascript" src="<?= url::file("lib/swfobject.js") ?>"></script> <script type="text/javascript" src="<?= url::file("lib/uploadify/jquery.uploadify.min.js") ?>"></script> <script type="text/javascript"> @@ -15,8 +28,8 @@ cancelImg: "<?= url::file("lib/uploadify/cancel.png") ?>", buttonText: <?= t("Select Photos ...")->for_js() ?>, simUploadLimit: 10, - //wmode: "transparent", - hideButton: false, /* should be true */ + wmode: "transparent", + hideButton: true, /* should be true */ auto: true, multi: true, onAllComplete: function(filesUploaded, errors, allbytesLoaded, speed) { @@ -78,11 +91,6 @@ return true; } }); - - // @todo figure out how to actually get the offset or why it comes back 0 0 - var offset = $("#g-add-photos-button").offset(); - //$("#g-uploadifyUploader").css({top: "97px", position: "absolute", left: "198px"}); - //$("#g-add-photos-button").height("40px").width("120px"); }); </script> @@ -115,7 +123,7 @@ </div> <div id="g-add-photos-canvas" style="text-align: center;"> - <!-- a id="g-add-photos-button" class="ui-corner-all" style="padding-bottom: 1em;" href="#"><?= t("Select Photos...") ?></a --> + <a id="g-add-photos-button" class="ui-corner-all" style="padding-bottom: 1em;" href="#"><?= t("Select Photos...") ?></a> <span id="g-uploadify"></span> </div> <div id="g-add-photos-status" style="text-align: center;"> |