Commit Graph

1632 Commits

Author SHA1 Message Date
Tobias Reich
7ba384e70a Updated to minor version 2016-08-22 14:08:03 +02:00
Tobias Reich
9548f43b06 Use new album.isSmartID to check if it's a smart album 2016-08-22 14:06:54 +02:00
Tobias Reich
5bbac75481 Merge branch 'develop' into feature/subalbums 2016-08-22 14:01:10 +02:00
Tobias Reich
b26cbc0a22 Merge pull request #601 from electerious/develop
Lychee 3.1.3
2016-08-22 13:53:01 +02:00
Tobias Reich
bf0ef33a98 Updated changelog 2016-08-22 13:52:14 +02:00
Tobias Reich
e4d0e9a3e5 Rebuild 2016-08-22 13:47:26 +02:00
Tobias Reich
8a267c05c5 Hide sidebar when navigating to smart album 2016-08-22 13:45:48 +02:00
Tobias Reich
a0c33bb4a0 Updated version 2016-08-22 13:16:49 +02:00
Tobias Reich
13f193381d Added v3.1.3 changelog 2016-08-22 13:08:22 +02:00
Tobias Reich
58d378da1a Rebuild 2016-08-22 12:55:21 +02:00
Tobias Reich
c527534ee5 Prefetch big when medium not available 2016-08-22 12:54:12 +02:00
Tobias Reich
83389467ce Removed Docker docs as Dockerfile has been outsourced already
Dockerfile not part of the project anymore. Check the readme for more details.
2016-08-20 20:54:56 +02:00
Tobias Reich
274f782f3c Merge pull request #600 from qligier/pr-rotate
Rotate and flip the image with GD
2016-08-20 15:14:54 +02:00
Quentin Ligier
eff2b34c7d Coding style 2016-08-20 12:36:27 +02:00
Quentin Ligier
e5a88c918f Rotate and flip the image with GD 2016-08-20 12:34:31 +02:00
Quentin Ligier
c7d0e5215d Merge pull request #9 from electerious/develop
Develop merge
2016-08-20 12:31:37 +02:00
Nils Asmussen
7ebe2a1aa0 Clear selected items when multiselect starts. 2016-08-15 22:03:03 +02:00
Nils Asmussen
ea073b4324 Use outline for selected items, not border. 2016-08-15 22:02:03 +02:00
Tobias Reich
55ae8a4be2 Merge pull request #591 from hrniels/subalbums
Some cleanup, fixes and a new feature for subalbums.
2016-08-15 14:45:41 +02:00
Nils Asmussen
0746acda79 Allow to select photos/albums individually (fixes #339).
This commit adds support for selecting photos and albums individually
via ctrl+click. For that, the event handlers in init.js call to
multiselect now, which collects the photo/album ids and calls the
appropriate method of contextMenu in the end.
2016-08-14 20:15:20 +02:00
Nils Asmussen
3040ab1d62 Improved display of root album in move operation.
Root is now shown as the parent of all albums with parent=0.
2016-08-13 16:50:05 +02:00
Nils Asmussen
5ee34c50a4 Properly redirect after album {delete,move,merge}.
That is, we don't redirect to the albums view, but to the current album
or the parent album if the current one has been deleted.
2016-08-13 16:03:37 +02:00
Nils Asmussen
7126354d7a Hide "Photos" divider if photos are deleted.
If we have deleted all photos from an album, we need to remove the
divider between albums and photos.
2016-08-13 16:01:41 +02:00
Tobias Reich
6a1d38d0e9 Rebuild 2016-08-09 09:53:29 +02:00
Tobias Reich
d458feb55d Updated deps 2016-08-09 09:53:24 +02:00
Tobias Reich
0188cbba38 Merge branch 'hrniels-fullscreen' into develop 2016-08-09 09:42:34 +02:00
Nils Asmussen
58d3ad727d Hide download button only w/o photos and subalbums.
Previously, an album with subalbums, but without photos, was hiding
the download button.
2016-08-07 14:47:45 +02:00
Tobias Reich
c7c0ff4fb2 Merge pull request #590 from hrniels/diagnostics-imagick
Added warning if Imagick is not installed/enabled.
2016-08-07 13:33:00 +02:00
Nils Asmussen
9b71bae4a1 Added warning if Imagick is not installed/enabled.
If GD is used instead of Imagick, rotating uploaded pictures leads to
a loss of their metadata. Since this is unexpected and maybe a problem,
the diagnostics should show a warning.

This commit displays a warning if it's either not installed or not
enabled in settings.
2016-08-06 16:00:48 +02:00
Nils Asmussen
8181bd6ce6 Removed duplicated timeout for header.
Because of that, the timeout for going into fullscreen mode
has been changed from 500ms to 1s.
2016-08-06 15:19:55 +02:00
Tobias Reich
808d7afb89 Merge branch 'hrniels-diagnostics' into develop 2016-08-06 14:24:50 +02:00
Nils Asmussen
a1879c2a21 diagnostics: don't assume that gd_info exists (fixes #565). 2016-08-04 23:07:06 +02:00
Nils Asmussen
20c194f00c Always show merge&move operations in context menu.
Previously, we calculated whether there are at least two albums so that
we can actually perform the operation. Due to subalbums this simple
check is not sufficient anymore. Since the rules are more complicated
and we don't have all albums loaded at that point to calculate it
properly, this commit removes the check entirely and always displays
the operations.

The only disadvantage is that if an installation really has just one
album (should rarely happen), the user still sees the merge operation
(not merge all), which results in an album-list with one disabled album.
I think this is okay.
2016-08-04 07:35:49 +02:00
Nils Asmussen
b91759e6c1 Added a move album operation.
Since albums can have subalbums now, it makes sense to not only merge
albums, but also move them.
2016-08-03 23:04:47 +02:00
Nils Asmussen
9b5328d888 Don't validate merge request on server.
Since we don't show the user invalid merge requests to send to the
server, the user would have to handcraft such requests. Only admins can
merge albums, which we trust anyway. So, let's remove this check.
2016-08-03 22:58:17 +02:00
Nils Asmussen
adaa23d39f Syntax adjustments in album.js. 2016-08-03 21:59:02 +02:00
Nils Asmussen
96bd6b240b Better highlighting of selected items.
Especially for albums, it is difficult to which ones are
chosen for an operation, because in contrast to photos, the
only change is the thin blue border.

This commit adds a new CSS class, that is set when items
have been selected. Currently, it sets a 2px border instead
of 1px.
2016-08-01 15:33:21 +02:00
Nils Asmussen
e41b0f81bd Improved fullscreen enter/leave in photo view.
Previously, document.mouse{enter,leave} was used for that. This
has the disadvantage that is doesn't work when the browser is
in fullscreen mode (at least, in Chromium), because the mouse
can no longer leave the document.

With this commit, mousemove is used to switch to fullscreen
in the photo view after the user has not moved the mouse for
some time. It is left again, if the user moves the mouse.
2016-08-01 14:20:21 +02:00
Tobias Reich
61a62421f4 Check if album.json exists
album.json is null when in the overview. album.getParent() was unusable in this case.
2016-07-31 16:17:41 +02:00
Tobias Reich
066fc90056 Syntax adjustment for contextMenu.js 2016-07-31 16:12:14 +02:00
Tobias Reich
2b698ca024 Removed disabled context menu item class
Removed unsed disabled class from context menu now where we are using the disabled option of basicContext
2016-07-31 16:11:59 +02:00
Tobias Reich
2da195f925 Use disabled functionality of basicContext 2016-07-31 16:03:08 +02:00
Tobias Reich
0c7d95fb15 Syntax adjustments 2016-07-31 15:53:34 +02:00
Tobias Reich
1020b0d1dc Merge branch 'subalbums' of https://github.com/hrniels/Lychee into feature/subalbums 2016-07-31 15:26:34 +02:00
Nils Asmussen
8b37d122b9 Fixed bug in countSubAlbums. 2016-07-30 15:11:49 +02:00
Nils Asmussen
f7e31c2be7 Fixed bug in album.setTitle. 2016-07-30 15:04:03 +02:00
Nils Asmussen
ffef7e3d8f Fixed bug in multiselect, introduced by 6d4df5f. 2016-07-30 14:51:24 +02:00
Nils Asmussen
daf7d37c84 Prevent album merge errors on client-side.
Previously, we allowed that and reported an error in this case. Now,
the user can no longer select a parent album for merging it into a
subalbum. It is still checked on the server, though.
2016-07-30 12:04:07 +02:00
Nils Asmussen
cdd130b243 Let the user know that deleting an album deletes subalbums, too. 2016-07-30 11:20:30 +02:00
Nils Asmussen
d121e2c4f6 Go to parent album on ESC. 2016-07-30 00:00:54 +02:00