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 64b54ee commit 00cb328
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libindic/hyphenation/templates/hyphenation.html
Expand Up @@ -14,12 +14,13 @@
jsonRequest = {
method: "hyphenation.hyphenate",
params: [text, hyphChar],
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 00cb328

Please sign in to comment.