diff --git a/airsonic-main/src/main/webapp/WEB-INF/jsp/editTags.jsp b/airsonic-main/src/main/webapp/WEB-INF/jsp/editTags.jsp
index d0a2125c..c3816b21 100644
--- a/airsonic-main/src/main/webapp/WEB-INF/jsp/editTags.jsp
+++ b/airsonic-main/src/main/webapp/WEB-INF/jsp/editTags.jsp
@@ -13,48 +13,48 @@
var fileCount = ${fn:length(model.songs)};
function setArtist() {
var artist = dwr.util.getValue("artistAll");
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
dwr.util.setValue("artist" + i, artist);
}
}
function setAlbum() {
var album = dwr.util.getValue("albumAll");
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
dwr.util.setValue("album" + i, album);
}
}
function setYear() {
var year = dwr.util.getValue("yearAll");
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
dwr.util.setValue("year" + i, year);
}
}
function setGenre() {
var genre = dwr.util.getValue("genreAll");
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
dwr.util.setValue("genre" + i, genre);
}
}
function suggestTitle() {
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
var title = dwr.util.getValue("suggestedTitle" + i);
dwr.util.setValue("title" + i, title);
}
}
function resetTitle() {
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
var title = dwr.util.getValue("originalTitle" + i);
dwr.util.setValue("title" + i, title);
}
}
function suggestTrack() {
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
var track = dwr.util.getValue("suggestedTrack" + i);
dwr.util.setValue("track" + i, track);
}
}
function resetTrack() {
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
var track = dwr.util.getValue("originalTrack" + i);
dwr.util.setValue("track" + i, track);
}
@@ -63,7 +63,7 @@
document.getElementById("save").disabled = true;
index = 0;
dwr.util.setValue("errors", "");
- for (i = 0; i < fileCount; i++) {
+ for (var i = 0; i < fileCount; i++) {
dwr.util.setValue("status" + i, "");
}
updateNextTag();
@@ -86,7 +86,7 @@
} else if (result == "UPDATED") {
message = "
" onclick="javascript:updateTags()"/>
+" onclick="updateTags()"/>