aaronksaunders/appcelerator_box_com — Issue #3: problems setting tags with box_module.js
Author: joachim2
Created: 2012-02-24 11:20:09+00:00
State: open

I had to make some small changes to the module to work with box API function add_to_tag

- removed lines 130-136: parameters were added twice

- changed line 146 into
if (a == 'params[]' || a == 'tags[]') {

- changed line 148 into
url += '&' + a + '=' + (paramMap[a][b] ? Titanium.Network.encodeURIComponent(paramMap[a][b]) : "");

line 146 could be rewriten to be more generic, for example test whether var a ends with '[]'