summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-14 13:07:58 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-14 13:07:58 -0700
commitf10d641044fe31224af5b42b148a8ee77d9a34db (patch)
tree63ebf676cf3064499ba129870a0a54be9f9e08c0 /modules
parent1c5264d7f5a2914f3ae0cb1208b2bc2810b090ec (diff)
Change the parameters for the organize dialog box. The baseUrl parameter was removed and replaced with the restUri, which contains the relative uri for the rest controller. The controller parameter is now the relative uri for the organize controller. The protocol parameter was added. In addition, there is not default size for the organize flex object. It attempts to fit within the gallery3 dialog box.
Diffstat (limited to 'modules')
-rw-r--r--modules/organize/controllers/organize.php2
-rw-r--r--modules/organize/lib/Gallery3WebClient.swfbin142627 -> 147590 bytes
-rw-r--r--modules/organize/views/organize_dialog.html.php11
3 files changed, 9 insertions, 4 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index 199aeaf3..d688a76d 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -45,6 +45,8 @@ class Organize_Controller extends Controller {
$user = identity::active_user();
$v->access_key = rest::get_access_key($user->id)->access_key;
+
+ $v->protocol = (empty($_SERVER["HTTPS"]) OR $_SERVER["HTTPS"] === "off") ? "http" : "https";
print $v;
}
diff --git a/modules/organize/lib/Gallery3WebClient.swf b/modules/organize/lib/Gallery3WebClient.swf
index 879a4fec..c51fa4e8 100644
--- a/modules/organize/lib/Gallery3WebClient.swf
+++ b/modules/organize/lib/Gallery3WebClient.swf
Binary files differ
diff --git a/modules/organize/views/organize_dialog.html.php b/modules/organize/views/organize_dialog.html.php
index 8c5ba133..8160a339 100644
--- a/modules/organize/views/organize_dialog.html.php
+++ b/modules/organize/views/organize_dialog.html.php
@@ -87,14 +87,17 @@
function getGalleryParameters() {
return {
- fileFilter: "<?= $file_filter ?>",
+ dialogWidth: $("#g-dialog:parent").width(),
+ dialogHeight: $("#g-dialog").height(),
domain: "<?= $domain ?>",
+ accessKey: "<?= $access_key ?>",
+ protocol: "<?= $protocol ?>",
+ fileFilter: "<?= $file_filter ?>",
sortOrder: "<?= $sort_order ?>",
sortFields: "<?= $sort_fields ?>",
- baseUrl: "<?= $base_url ?>",
- accessKey: "<?= $access_key ?>",
albumId: "<?= $album->id ?>",
- controller: "<?= url::abs_site("organize") ?>/"
+ restUri: "<?= url::site("rest") ?>/",
+ controller: "<?= url::site("organize") ?>/"
};
};
/*