Skip to content

Commit

Permalink
Merge branch 'master' into talmdal_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Almdal committed Sep 14, 2009
2 parents dbeadfc + c527e70 commit 0b0586a
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 23 deletions.
11 changes: 5 additions & 6 deletions README
Expand Up @@ -7,10 +7,10 @@ interface.


SECURITY (& INTENDED AUDIENCE):
This is the first beta release of Gallery 3.0 and while it's not a
finished product, it's heading into the home stretch. You can install
it on public websites, but remember that until the final release is
out, we make no guarantees that it won't do bad things.
This is the third and final beta release of Gallery 3.0 and while it's
not a finished product, it's heading into the home stretch. You can
install it on public websites, but remember that until the final
release is out, we make no guarantees that it won't do bad things.

Note:
- We've contracted a professional security audit, received their results
Expand All @@ -22,8 +22,7 @@ Note:
- Most of the key features are in, but some of them (notably the "add from
server" and "organize album" features) are probably going to be completely
rewritten.
- Starting with beta 1 we're going to offer an upgrade path so you won't
have to reinstall and start all over (yay!)
- You can upgrade from beta 1, but not from alpha releases.

The intended audience of this release is folks who are willing to live
a little bit on the edge. We'll do our best to take care of your data
Expand Down
1 change: 1 addition & 0 deletions modules/comment/helpers/comment_theme.php
Expand Up @@ -27,6 +27,7 @@ static function photo_bottom($theme) {
$block = new Block;
$block->css_id = "gComments";
$block->title = t("Comments");
$block->anchor = "comments";

$view = new View("comments.html");
$view->comments = ORM::factory("comment")
Expand Down
18 changes: 10 additions & 8 deletions modules/comment/js/comment.js
@@ -1,13 +1,15 @@
$("document").ready(function() {
$("#gAddCommentButton").click(function(event) {
event.preventDefault();
$.get($(this).attr("href"),
{},
function(data) {
$("#gCommentDetail").append(data);
ajaxify_comment_form();
});
});
if (!$("#gAddCommentForm").length) {
$.get($(this).attr("href"),
{},
function(data) {
$("#gCommentDetail").append(data);
ajaxify_comment_form();
});
}
});
});

function ajaxify_comment_form() {
Expand All @@ -22,7 +24,7 @@ function ajaxify_comment_form() {
$.get(data.resource, function(data, textStatus) {
$("#gComments .gBlockContent ul:first").append("<li>"+data+"</li>");
$("#gComments .gBlockContent ul:first li:last").effect("highlight", {color: "#cfc"}, 8000);
$("#gAddCommentForm").hide(2000);
$("#gAddCommentForm").hide(2000).remove();
$("#gNoCommentsYet").hide(2000);
});
}
Expand Down
12 changes: 7 additions & 5 deletions modules/gallery/controllers/albums.php
Expand Up @@ -40,11 +40,13 @@ public function _show($album) {

if ($show) {
$index = $album->get_position($show);
$page = ceil($index / $page_size);
if ($page == 1) {
url::redirect($album->abs_url());
} else {
url::redirect($album->abs_url("page=$page"));
if ($index) {
$page = ceil($index / $page_size);
if ($page == 1) {
url::redirect($album->abs_url());
} else {
url::redirect($album->abs_url("page=$page"));
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/helpers/gallery.php
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
class gallery_Core {
const VERSION = "3.0 git (pre-beta3)";
const VERSION = "3.0 beta 3";

/**
* If Gallery is in maintenance mode, then force all non-admins to get routed to a "This site is
Expand Down
2 changes: 1 addition & 1 deletion modules/gallery/views/upgrader.html.php
Expand Up @@ -81,7 +81,7 @@
<? else: // can_upgrade ?>
<h1> <?= t("Who are you?") ?> </h1>
<p>
<?= t("You're not logged in as an administrator, so we have to verify you to make sure it's ok for you to do an upgrade. To prove you can run an upgrade, create a file called %name in your <b>gallery3/var/tmp</b> directory.", array("name" => "<br/><b>$upgrade_token</b>")) ?>
<?= t("You're not logged in as an administrator, so we have to verify you to make sure it's ok for you to do an upgrade. To prove you can run an upgrade, create a file called <br/><b>%name</b> in your <b>gallery3/var/tmp</b> directory.", array("name" => "$upgrade_token")) ?>
</p>
<a href="<?= url::site("upgrader?") ?>"><?= t("Ok, I've done that") ?></a>
<? endif // can_upgrade ?>
Expand Down
2 changes: 1 addition & 1 deletion modules/organize/js/organize.js
Expand Up @@ -142,7 +142,7 @@
$("#gDialog").bind("dialogopen", function(event, ui) {
$("#gOrganize").height($("#gDialog").innerHeight() - 20);
$("#gOrganizeMicroThumbPanel").height($("#gDialog").innerHeight() - 90);
$("#gOrganizeAlbumTree").height($("#gDialog").innerHeight() - 59);
$("#gOrganizeTreeContainer").height($("#gDialog").innerHeight() - 59);
});

$("#gDialog").bind("dialogclose", function(event, ui) {
Expand Down
2 changes: 1 addition & 1 deletion themes/admin_default/views/admin.html.php
Expand Up @@ -43,7 +43,7 @@
<div id="gHeader">
<?= $theme->admin_header_top() ?>
<ul id="gLoginMenu">
<li class="first"><?= html::anchor(item::root()->url(), "&larr; ".t("Back to the Gallery")) ?></li>
<li class="first"><?= html::anchor(item::root()->abs_url(), "&larr; ".t("Back to the Gallery")) ?></li>
<li id="gLogoutLink"><a href="<?= url::site("logout?csrf=$csrf&amp;continue=" . urlencode(item::root()->url())) ?>"><?= t("Logout") ?></a></li>
</ul>
<a id="gLogo" href="<?= item::root()->url() ?>" title="<?= t("go back to the Gallery")->for_html_attr() ?>">
Expand Down
3 changes: 3 additions & 0 deletions themes/admin_default/views/block.html.php
@@ -1,4 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($anchor): ?>
<a name="<?= $anchor ?>"></a>
<? endif ?>
<div block_id="<?= $id ?>" id="<?= $css_id ?>" class="gBlock ui-widget">
<div class="ui-dialog-titlebar ui-widget-header ui-helper-clearfix ui-icon-right">
<? if ($css_id != "gBlockAdder"): ?>
Expand Down
2 changes: 2 additions & 0 deletions themes/default/views/block.html.php
@@ -1,5 +1,7 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if ($anchor): ?>
<a name="<?= $anchor ?>"></a>
<? endif ?>
<div id="<?= $css_id ?>" class="gBlock">
<h2><?= $title ?></h2>
<div class="gBlockContent">
Expand Down

0 comments on commit 0b0586a

Please sign in to comment.