projects
/
infodrom
/
phone
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe0ffb9
)
Display the call note as title
author
Joey Schulze
<joey@infodrom.org>
Tue, 15 Dec 2009 13:40:45 +0000
(14:40 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 25 Feb 2011 17:40:23 +0000
(18:40 +0100)
phone.js
patch
|
blob
|
history
diff --git
a/phone.js
b/phone.js
index
b249880
..
73bc2b5
100644
(file)
--- a/
phone.js
+++ b/
phone.js
@@
-51,6
+51,8
@@
function fetch_incoming_callback(data)
elem.payload['call'] = data.incoming[i].fname;
if (data.incoming[i].read == undefined)
elem.className = 'new';
elem.payload['call'] = data.incoming[i].fname;
if (data.incoming[i].read == undefined)
elem.className = 'new';
+ if (data.incoming[i].note.length)
+ elem.title = data.incoming[i].note;
elem.onclick = play_message;
elem.oncontextmenu = list_context;
calls.appendChild(elem);
elem.onclick = play_message;
elem.oncontextmenu = list_context;
calls.appendChild(elem);
@@
-88,6
+90,8
@@
function fetch_archive_callback(data)
elem.payload = new Array();
elem.payload['dir'] = 'archive';
elem.payload['call'] = data.archive[i].fname;
elem.payload = new Array();
elem.payload['dir'] = 'archive';
elem.payload['call'] = data.archive[i].fname;
+ if (data.archive[i].note.length)
+ elem.title = data.archive[i].note;
elem.onclick = play_message;
elem.oncontextmenu = list_context;
calls.appendChild(elem);
elem.onclick = play_message;
elem.oncontextmenu = list_context;
calls.appendChild(elem);