summaryrefslogtreecommitdiffstats
path: root/lua/mvc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/mvc.lua')
-rwxr-xr-xlua/mvc.lua2
1 files changed, 1 insertions, 1 deletions
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