Add reload facility with image from http://www.veryicon.com/icon/png/Internet%20...
authorJoey Schulze <joey@infodrom.org>
Sat, 12 Dec 2009 17:27:43 +0000 (18:27 +0100)
committerJoey Schulze <joey@infodrom.org>
Fri, 25 Feb 2011 17:40:22 +0000 (18:40 +0100)
index.php
lib/reload.png [new file with mode: 0644]
phone.css
phone.js

index d37f4e6..b227cf5 100644 (file)
--- a/index.php
+++ b/index.php
@@ -59,6 +59,10 @@ if (!empty($_POST['func'])) {
 
 </div>
 
 
 </div>
 
+<div class="controls">
+<img src="lib/reload.png" onclick="reload()" title="Check phone box">
+</div>
+
 <div class="phonecall">
 <p class="title">Play message</p>
 <p id="callspeaker">&nbsp;</p>
 <div class="phonecall">
 <p class="title">Play message</p>
 <p id="callspeaker">&nbsp;</p>
diff --git a/lib/reload.png b/lib/reload.png
new file mode 100644 (file)
index 0000000..f439296
Binary files /dev/null and b/lib/reload.png differ
index 4add06b..3d36bf0 100644 (file)
--- a/phone.css
+++ b/phone.css
@@ -91,6 +91,12 @@ iframe.phonecall {
     border: 0;
 }
 
     border: 0;
 }
 
+div.controls {
+    width: 33px;
+    position: absolute;
+    left: 312px;
+    top: 5px;
+}
 div.editcall {
     border: 1px solid #bfbfbf;
     width: 210px;
 div.editcall {
     border: 1px solid #bfbfbf;
     width: 210px;
index 58e5371..0a2a996 100644 (file)
--- a/phone.js
+++ b/phone.js
@@ -14,6 +14,12 @@ function page_init()
     fetch_archive();
 }
 
     fetch_archive();
 }
 
+function reload()
+{
+    fetch_incoming();
+    fetch_archive();
+}
+
 function fetch_incoming_callback(data)
 {
     var calls = document.getElementById('incoming_calls');
 function fetch_incoming_callback(data)
 {
     var calls = document.getElementById('incoming_calls');