diff options
author | rtz12 <koenig@fagott.pw> | 2016-01-17 21:31:12 (UTC) |
---|---|---|
committer | rtz12 <koenig@fagott.pw> | 2016-01-17 21:31:12 (UTC) |
commit | 72ad0e53f3887b5ad74034a99c6453a88eeb0cbd (patch) | |
tree | a2b83127f37ff1706e593f15299cd6e7347f788a /assets/js/list.js | |
parent | 6cb2de0a1f583ef8d018e430181a7414fa7faff1 (diff) |
Geiles neues Buildsystem fuer die Assets
Diffstat (limited to 'assets/js/list.js')
-rw-r--r-- | assets/js/list.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/assets/js/list.js b/assets/js/list.js deleted file mode 100644 index 25ff80d..0000000 --- a/assets/js/list.js +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | function clickSearchResult(resId) { | ||
2 | var xhr = new XMLHttpRequest(); | ||
3 | xhr.onreadystatechange = function() { | ||
4 | if (xhr.readyState == XMLHttpRequest.DONE) { | ||
5 | if (xhr.status !== 200) { | ||
6 | alert(xhr.status + ": " + xhr.response); | ||
7 | return; | ||
8 | } | ||
9 | |||
10 | data = xhr.responseText; | ||
11 | document.getElementById("gril-list").innerHTML += data; | ||
12 | } | ||
13 | } | ||
14 | xhr.open('POST', window.location, true); | ||
15 | xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); | ||
16 | xhr.send('id=' + resId); | ||
17 | } \ No newline at end of file | ||