|
@@ -218,7 +218,7 @@ var settings = {
|
|
|
"Sort photos by \
|
|
|
<select id='settings_type'> \
|
|
|
<option value='id'>Upload Time</option> \
|
|
|
- <option value='take'>Take Date</option> \
|
|
|
+ <option value='takestamp'>Take Date</option> \
|
|
|
<option value='title'>Title</option> \
|
|
|
<option value='description'>Description</option> \
|
|
|
<option value='public'>Public</option> \
|
|
@@ -234,13 +234,12 @@ var settings = {
|
|
|
", buttons);
|
|
|
|
|
|
if (lychee.sorting!=="") {
|
|
|
- sorting = lychee.sorting.replace("ORDER BY ", "").split(" ");
|
|
|
|
|
|
- // Special parsing
|
|
|
- if (sorting[0]==='UNIX_TIMESTAMP(STR_TO_DATE(CONCAT(takedate,"-",taketime),"%d.%m.%Y-%H:%i:%S"))') sorting[0] = "take";
|
|
|
+ sorting = lychee.sorting.replace("ORDER BY ", "").split(" ");
|
|
|
|
|
|
$("select#settings_type").val(sorting[0]);
|
|
|
$("select#settings_order").val(sorting[1]);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
},
|