Skip to content

Commit

Permalink
Fixed language parameter used for i-doit API
Browse files Browse the repository at this point in the history
  • Loading branch information
bheisig committed Apr 30, 2014
1 parent 5d7b8d8 commit f5a80d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions html/Elements/ShowIDoitObjects
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@
"ids": objects,
"location": true
},
"session": {
"language": "<% $Language %>"
},
"apikey": "<% $Language %>"
"language": "<% $Language %>",
"apikey": apiKey
},
"id": "1",
"jsonrpc": "2.0",
Expand Down
9 changes: 3 additions & 6 deletions html/NoAuth/js/referenceidoitobjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,11 @@ ReferenceIDoitObjects = function (params) {
* @param {bool} async - Send request asyncronously?
*/
this.callIDoit = function (data, callback, async) {
// Enhance data:
data.id = '1';

data.jsonrpc = '2.0';

data.params.session = {
"language": params.language
};

data.params = data.params || {};
data.params.language = params.language;
data.params.apikey = params.mandatorKeys[that.mandator.val()];

$.ajax({
Expand Down

0 comments on commit f5a80d2

Please sign in to comment.