~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to console/console.js

  • Committer: drtomc
  • Date: 2008-01-22 03:36:06 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:263
A few little cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
function historyAdd(text)
29
29
{
30
30
    this.items[this.items.length] = text;
31
 
    this.cursor = this.items.length
 
31
    this.cursor = this.items.length;
32
32
}
33
33
 
34
34
function historyShow()
93
93
            {
94
94
                qs += "&";
95
95
            }
96
 
            qs += encodeURI(key) + "=" + encodeURI(val);
 
96
            qs += encodeURIComponent(key) + "=" + encodeURIComponent(val);
97
97
        }
98
98
    }
99
99
    return qs;
120
120
            {
121
121
                qs += "&";
122
122
            }
123
 
            qs += encodeURI(key) + "=" + encodeURI(val);
 
123
            qs += encodeURIComponent(key) + "=" + encodeURIComponent(val);
124
124
        }
125
125
    }
126
126
    return qs;
135
135
    xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
136
136
    xmlhttp.send(make_post_body({"digest":digest, "text":inp.value}))
137
137
    var res = JSON.parse(xmlhttp.responseText);
138
 
    var output = document.getElementById("output")
 
138
    var output = document.getElementById("output");
139
139
    {
140
140
        var pre = document.createElement("pre");
141
141
        pre.setAttribute("class", "inputMsg");