Error:
Code:
Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at Function.n.parseJSON (jquery.js?ver=1813:4)
at Object.success (dvz_shoutbox.js:97)
at i (jquery.js?ver=1813:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1813:2)
at y (jquery.js?ver=1813:4)
at XMLHttpRequest.c (jquery.js?ver=1813:4)
Im using Mybb 1.8.18 Default jquery plugins
Fixed xd
Answer:
Code:
//I check var data lenght
var n = data.replace(/\s/g, '').length
//And I replace:
if(data)
//-->
if(n)
This solve my problem by now