From 67e49db7977851019791159291dc6e0372103baf Mon Sep 17 00:00:00 2001 From: psychobunny Date: Sat, 7 Dec 2013 16:40:14 -0500 Subject: [PATCH] ajaxify.refresh(); removed console.log --- public/src/ajaxify.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index cdb169b60f..e0c69687f6 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -32,6 +32,7 @@ var ajaxify = {}; var pagination, paginator_bar; ajaxify.currentPage = null; + ajaxify.go = function (url, callback, template, quiet) { // start: the following should be set like so: ajaxify.onchange(function(){}); where the code actually belongs $(window).off('scroll'); @@ -70,7 +71,6 @@ var ajaxify = {}; } if (templates.is_available(tpl_url) && !templates.force_refresh(tpl_url)) { - console.log(tpl_url); ajaxify.currentPage = tpl_url; if (window.history && window.history.pushState) { @@ -133,6 +133,10 @@ var ajaxify = {}; return false; }; + ajaxify.refresh = function() { + ajaxify.go(ajaxify.currentPage); + }; + $('document').ready(function () { if (!window.history || !window.history.pushState) { return; // no ajaxification for old browsers