summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-02-23 15:31:27 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-02-23 15:31:27 +0100
commit5ff86f1d353ae62906f050e735cd1b33938661fc (patch)
treee6ddacd08e4d9d9a66f3c194c68e7eb6f9db2c74
parent07e31be1298ab2df9b7b1442a2b5979c74820674 (diff)
Remove some unused alerts.
-rw-r--r--munia.html11
1 files changed, 2 insertions, 9 deletions
diff --git a/munia.html b/munia.html
index dfe59e7..2eb8438 100644
--- a/munia.html
+++ b/munia.html
@@ -14,7 +14,7 @@
<div id="wslm_lastmsg"></div>
<div id="wslm_drawing"></div>
<div id="box" style="position: absolute;">Hello World</div>
-<input type="text" id="input_data" value="Do magic here" onfocus="clear()"/>
+<input type="text" id="input_data" value="add title description 100 100" onfocus="clear()"/>
<input type="button" value="submit" onclick="submit()"/>
</div>
<script>
@@ -110,7 +110,6 @@ var socket_lm;
var color = "#000000";
var dragged = "";
-// alert(BrowserDetect.browser);
if (BrowserDetect.browser == "Firefox") {
socket_lm = new MozWebSocket(get_appropriate_ws_url(), "lws-mirror-protocol");
} else {
@@ -125,8 +124,7 @@ try {
}
socket_lm.onmessage = function got_packet(msg) {
-// alert(msg.data);
-// document.getElementById("wslm_lastmsg").textContent = msg.data;
+ document.getElementById("wslm_lastmsg").textContent = msg.data;
j = msg.data.split(';');
f = 0;
@@ -146,13 +144,11 @@ try {
ctx.stroke();
}
else if (i[0] == "del") {
-// alert("Deleting task");
var task = document.getElementById("task_" + i[1]);
// task.style.display = "none";
document.body.removeChild(task);
}
else if (i[0] == "move") {
-// alert("Moving task");
var task = document.getElementById("task_" + i[1]);
task.style.left = i[2] + "px";
task.style.top = i[3] + "px";
@@ -243,17 +239,14 @@ function ev_mousemove (ev)
function submit() {
var data = document.getElementById("input_data").value;
- alert(data);
socket_lm.send(data);
}
function clear() {
- alert('asd');
document.getElementById("input_data").value = "";
}
function deleteTask(id) {
-// alert(id);
socket_lm.send("del " + id + ";");
}