Fix some warnings reported by JSHint.

This commit is contained in:
Sébastien Lucas 2013-10-02 16:35:20 +02:00
parent 4ad1cd693b
commit e3bf13ab47

View file

@ -237,7 +237,7 @@ function navigateTo (url) {
function updatePage (data) { function updatePage (data) {
var result; var result;
filterList = {}; filterList = {};
data ["c"] = currentData ["c"]; data.c = currentData.c;
if (false && $("section").length && currentData.isPaginated === 0 && data.isPaginated === 0) { if (false && $("section").length && currentData.isPaginated === 0 && data.isPaginated === 0) {
// Partial update (for now disabled) // Partial update (for now disabled)
debug_log ("Partial update"); debug_log ("Partial update");
@ -251,7 +251,7 @@ function updatePage (data) {
} }
document.title = data.title; document.title = data.title;
currentData = data; currentData = data;
setTimeout( function() { $("input[name=query]").focus() }, 500 ); setTimeout( function() { $("input[name=query]").focus(); }, 500 );
debug_log (elapsed ()); debug_log (elapsed ());
@ -325,7 +325,7 @@ function link_Clicked (event) {
before = new Date (); before = new Date ();
var jsonurl = url.replace ("index", "getJSON"); var jsonurl = url.replace ("index", "getJSON");
$.getJSON(jsonurl, function(data) { $.getJSON(jsonurl, function(data) {
data ["c"] = currentData ["c"]; data.c = currentData.c;
var detail = ""; var detail = "";
if (data.page === "16") { if (data.page === "16") {
detail = data.fullhtml; detail = data.fullhtml;