mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-08 00:16:24 +00:00
ajax call fix. parenthesis fix
This commit is contained in:
parent
59a075ba6f
commit
7fbfb93bfb
@ -9,12 +9,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function fetchConversation(phoneNumber) {
|
function fetchConversation(phoneNumber) {
|
||||||
$.getJSON(OC.generateUrl('/apps/ocsms/get/get_conversation'),
|
$.getJSON(OC.generateUrl('/apps/ocsms/get/conversation'),
|
||||||
{'phoneNumber': phoneNumber},
|
{'phoneNumber': phoneNumber},
|
||||||
function(jsondata, status) {
|
function(jsondata, status) {
|
||||||
var conversationBuf = "";
|
var conversationBuf = "";
|
||||||
|
|
||||||
$.each(jsondata["conversation"]), function(id, vals) {
|
$.each(jsondata["conversation"], function(id, vals) {
|
||||||
conversationBuf += vals["msg"] + "<br />";
|
conversationBuf += vals["msg"] + "<br />";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user