Skip to content

Commit

Permalink
Change the parameters for the organize dialog box. The baseUrl parame…
Browse files Browse the repository at this point in the history
…ter 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.
  • Loading branch information
Tim Almdal committed Jun 14, 2010
1 parent 1c5264d commit f10d641
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions modules/organize/controllers/organize.php
Expand Up @@ -45,6 +45,8 @@ function dialog($album_id) {

$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;
}

Expand Down
Binary file modified modules/organize/lib/Gallery3WebClient.swf
Binary file not shown.
11 changes: 7 additions & 4 deletions modules/organize/views/organize_dialog.html.php
Expand Up @@ -87,14 +87,17 @@ function getTextStrings() {

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") ?>/"
};
};
/*
Expand Down

0 comments on commit f10d641

Please sign in to comment.