From 2e726d532bf7fe8b1e4f5f3912db32f5f0ba6c32 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 6 Nov 2012 17:11:41 +0000 Subject: Rename ajax viewtype to json to be more accurate --- lua/mvc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/mvc.lua b/lua/mvc.lua index 3c7ec54..5524c5b 100755 --- a/lua/mvc.lua +++ b/lua/mvc.lua @@ -345,7 +345,7 @@ auto_view = function(viewtable, viewlibrary, pageinfo, session) if pageinfo.viewtype == "html" then require("htmlviewfunctions") htmlviewfunctions.displayitem(viewtable, 1, pageinfo) - elseif pageinfo.viewtype == "ajax" then + elseif pageinfo.viewtype == "json" then require("json") print(json.encode(viewtable)) elseif pageinfo.viewtype == "stream" then -- cgit v1.2.3