Renamed name to title and added shortcut for tags and description.

This commit is contained in:
Tobias Reich 2014-03-30 00:12:38 +01:00
parent 31d2bbfe28
commit 032e972ece
3 changed files with 17 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -302,7 +302,7 @@ build = {
infos = [
["", "Basics"],
["Name", photoJSON.title + editTitleHTML],
["Title", photoJSON.title + editTitleHTML],
["Uploaded", photoJSON.sysdate],
["Description", photoJSON.description + editDescriptionHTML],
["", "Image"],
@ -414,7 +414,7 @@ build = {
infos = [
["", "Basics"],
["Name", albumJSON.title + editTitleHTML],
["Title", albumJSON.title + editTitleHTML],
["Description", albumJSON.description + editDescriptionHTML],
["", "Album"],
["Created", albumJSON.sysdate],

View File

@ -77,7 +77,18 @@ $(document).ready(function(){
.bind(['r', 'ctrl+r'], function(e) {
e.preventDefault();
if (visible.album()) album.setTitle(album.getID());
else if (visible.photo()) photo.setTitle(photo.getID());
else if (visible.photo()) photo.setTitle([photo.getID()]);
})
.bind(['d', 'ctrl+d'], function(e) {
e.preventDefault();
if (visible.photo()) photo.setDescription(photo.getID());
else if (visible.album()) album.setDescription(album.getID());
})
.bind(['t', 'ctrl+t'], function(e) {
if (visible.photo()) {
e.preventDefault();
photo.editTags([photo.getID()]);
}
})
.bind(['i', 'ctrl+i'], function() {
if (visible.infobox()) view.infobox.hide();