Skip to content

Commit

Permalink
Make template pass necessary jsonrpc variable
Browse files Browse the repository at this point in the history
  • Loading branch information
balasankarc committed Sep 8, 2017
1 parent 0f8b2dd commit 58924ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libindic/payyans/templates/payyans.html
Expand Up @@ -15,13 +15,14 @@
method: (direction == "a2u" ?
"payyans.ASCII2Unicode" : "payyans.Unicode2ASCII"),
params: [text, font],
id: ""
id: "jsonrpc",
jsonrpc: "2"
};

$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "JSONRPC",
url: "/api/JSONRPC",
data: JSON.stringify(jsonRequest),
dataType: "json",
beforeSend:function(){
Expand Down

0 comments on commit 58924ce

Please sign in to comment.