Although the submitted values get saved in the db just fine, the editable form remain open, its borders turn red (as something is wrong) and below I see "OK" message.
This is the script code part that deals with one of my columns:
j('.status').editable({
url: '/process',
title: 'Promijeni status',
ajaxOptions: {
dataType: 'json'
}
});
I'm coding in Codeigniter so the controller calls the model. In my model there's just a simple update statement, with no "return". Also, in the controller there's nothing that specifically sets the response status code. But I suspect the "OK" comes from the status code "200 OK".
If so, why everything is behaving like an error occurred? The form needs to be closed and new value should be loaded.