Avoid JSHint error. re #34

This commit is contained in:
Sébastien Lucas 2013-10-15 21:58:34 +02:00
parent a836be6507
commit 6bff2996ae
1 changed files with 7 additions and 5 deletions

12
util.js
View File

@ -224,7 +224,9 @@ function handleFilterEvents () {
************************************************
*/
function updatePage (data) {
var updatePage, navigateTo;
updatePage = function (data) {
var result;
filterList = {};
data.c = currentData.c;
@ -274,12 +276,12 @@ function updatePage (data) {
}
]);
$('input[name=query]').bind('typeahead:selected', function(obj, datum) {
$('input[name=query]').bind('typeahead:selected', function(obj, datum) {
navigateTo (datum.navlink);
});
}
};
function navigateTo (url) {
navigateTo = function (url) {
$("h1").append (" <i class='icon-spinner icon-spin'></i>");
before = new Date ();
var jsonurl = url.replace ("index", "getJSON");
@ -294,7 +296,7 @@ function navigateTo (url) {
updatePage (data);
});
}
}
};
function link_Clicked (event) {
var currentLink = $(this);