admin username & jsonp fixed

This commit is contained in:
life
2014-10-23 10:45:03 +08:00
parent 536c5de56a
commit b0b304d5dd
4 changed files with 21 additions and 20 deletions

View File

@ -161,7 +161,7 @@ func (c Blog) Cate(notebookId string) revel.Result {
}
// 显示分类的最近博客, json
func (c Blog) ListCateLatest(notebookId string) revel.Result {
func (c Blog) ListCateLatest(notebookId, callback string) revel.Result {
if notebookId == "" {
return c.E404()
}
@ -192,7 +192,7 @@ func (c Blog) ListCateLatest(notebookId string) revel.Result {
re := info.NewRe()
re.Ok = true
re.List = blogs
return c.RenderJson(re)
return c.RenderJsonP(callback, re)
}
func (c Blog) Index(userIdOrEmail string) revel.Result {