Tweak image display order
This commit is contained in:
parent
5f3ae13111
commit
12e19d5416
|
@ -186,7 +186,7 @@ class Image implements JsonSerializable {
|
||||||
public static function getImagesForAlbum($albumid = 0) {
|
public static function getImagesForAlbum($albumid = 0) {
|
||||||
global $globaldbh;
|
global $globaldbh;
|
||||||
|
|
||||||
$query = "SELECT id FROM " . AppDB::TABLE_IMAGES . " WHERE album_id=:album_id ORDER BY title";
|
$query = "SELECT id FROM " . AppDB::TABLE_IMAGES . " WHERE album_id=:album_id ORDER BY filename";
|
||||||
$sth = $globaldbh->prepare($query);
|
$sth = $globaldbh->prepare($query);
|
||||||
$sth->bindValue(":album_id", (int) $albumid, PDO::PARAM_INT);
|
$sth->bindValue(":album_id", (int) $albumid, PDO::PARAM_INT);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -238,7 +238,7 @@ class Image implements JsonSerializable {
|
||||||
public static function getList() {
|
public static function getList() {
|
||||||
global $globaldbh;
|
global $globaldbh;
|
||||||
|
|
||||||
$query = "SELECT id FROM " . AppDB::TABLE_IMAGES . " ORDER BY album_id, title";
|
$query = "SELECT id FROM " . AppDB::TABLE_IMAGES . " ORDER BY album_id, filename";
|
||||||
$sth = $globaldbh->prepare($query);
|
$sth = $globaldbh->prepare($query);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
$thelist = array();
|
$thelist = array();
|
||||||
|
|
|
@ -60,6 +60,7 @@ function refreshAlbums() {
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function(data, stat, jqo) {
|
success: function(data, stat, jqo) {
|
||||||
toastr.success("Album list refreshed", "Refresh");
|
toastr.success("Album list refreshed", "Refresh");
|
||||||
|
getAlbumInfo();
|
||||||
},
|
},
|
||||||
error: function(jqp, status, error) {
|
error: function(jqp, status, error) {
|
||||||
toastr.error("Error refreshing album list!\n" + error, "Server Error");
|
toastr.error("Error refreshing album list!\n" + error, "Server Error");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user