summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-06-24 17:46:21 +0200
committerPatrick Simianer <p@simianer.de>2015-06-24 17:46:21 +0200
commitd9e0c5cd45548fd07ad34bab6132bfccbc296f33 (patch)
treedbad1da6937210b30d8acde286c11cb53232e6c7
parent9a9636ec8dab9d2e650e56e56fade1f185d2ad3e (diff)
fixed js bug
-rw-r--r--index.php2
-rw-r--r--lfpe.js11
2 files changed, 12 insertions, 1 deletions
diff --git a/index.php b/index.php
index f694b72..3505eda 100644
--- a/index.php
+++ b/index.php
@@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="lfpe.css" />
</head>
-<body onload="">
+<body onload="init()">
<!-- Wrapper -->
<div id="wrapper">
diff --git a/lfpe.js b/lfpe.js
index b10a265..83257c1 100644
--- a/lfpe.js
+++ b/lfpe.js
@@ -1,3 +1,14 @@
+function init()
+{
+ document.getElementById("target_textarea").value = "";
+ document.getElementById("raw_source_textarea").value = "";
+ document.getElementById("source").value = "";
+ document.getElementById("current_seg_id").value = "";
+ document.getElementById("paused").value = "";
+
+ return false;
+}
+
function CreateCORSRequest(method, url)
{
var xhr = new XMLHttpRequest();