Browse Source

Template caching fix

Nathaniel van Diepen 11 years ago
parent
commit
963812fb09
1 changed files with 1 additions and 2 deletions
  1. 1 2
      js/index.js

+ 1 - 2
js/index.js

@@ -92,7 +92,7 @@
 			$('#loading').show();
 			data.get = 'api';
 			data.timestamp = +new Date;
-			if(exists(templates[data.type+'-'+data.id])){
+			if(''!=template(data.type+'-'+data.id)){
 				data.template = false;
 			}
 			$.get(location.href,data,function(d){
@@ -116,7 +116,6 @@
 				get:'state',
 				timestamp: +new Date
 			};
-			console.log(data,href);
 			ajax = $.ajax(href,{
 					data: data,
 					async: true,