/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to js/tools.js

  • Committer: Suren A. Chilingaryan
  • Date: 2020-01-13 11:01:10 UTC
  • Revision ID: csa@suren.me-20200113110110-mgl5rjtf815k0zgt
Encode/Decode all custom ADEI parameters

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        var res = false;
52
52
        for (var i in props) {
53
53
            if ((typeof props[i] != "object")&&(typeof props[i] != "function")) {
54
 
                if (res) res += "&" + i + "=" + props[i];
55
 
                else res = i + "=" + props[i];
 
54
                if (res) res += "&" + i + "=" + encodeURIComponent(props[i]);
 
55
                else res = i + "=" + encodeURIComponent(props[i]);
56
56
            }
57
57
        }
58
58
        return res;