Fixed initial ViewFile mode and suggestions links from previous commit

pull/167/merge
luccioman 7 years ago
parent 0b6aed4de6
commit 90dc580158

@ -45,7 +45,7 @@ function updatepage(str) {
html += "<td>URL from index (total results = " + totalResults + ")<\/td>"; html += "<td>URL from index (total results = " + totalResults + ")<\/td>";
for (var i = 0; i < firstChannel.items.length; i++) { for (var i = 0; i < firstChannel.items.length; i++) {
item = firstChannel.items[i]; item = firstChannel.items[i];
html += "<tr class=\"TableCellLight\"><td align=\"left\"><a href=\"ViewFile.html?url=" + item.link + "\">" + item.link + "<\/a><\/td>"; html += "<tr class=\"TableCellLight\"><td align=\"left\"><a href=\"ViewFile.html?viewMode=#[viewModeValue]#&url=" + item.link + "\">" + item.link + "<\/a><\/td>";
} }
html += "<\/table>"; html += "<\/table>";
} }

@ -89,7 +89,7 @@ public class ViewFile {
prop.put("topmenu", sb.getConfigBool("publicTopmenu", true) ? 1 : 0); prop.put("topmenu", sb.getConfigBool("publicTopmenu", true) ? 1 : 0);
prop.put("moar", 0); prop.put("moar", 0);
prop.put("viewMode", VIEW_MODE_NO_TEXT); prop.put("viewMode", VIEW_MODE_NO_TEXT);
prop.put("viewModeValue", ""); prop.put("viewModeValue", "sentences");
prop.putHTML("error_words", ""); prop.putHTML("error_words", "");
prop.put("error_vMode-sentences", "1"); prop.put("error_vMode-sentences", "1");
prop.put("error", "1"); prop.put("error", "1");

Loading…
Cancel
Save