Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
68e42262
Commit
68e42262
authored
14 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
[#3917] Automatically scroll down to the bottom of the page
parent
81229beb
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sflphone-client-gnome/webkit/im/im.html
+1
-0
1 addition, 0 deletions
sflphone-client-gnome/webkit/im/im.html
sflphone-client-gnome/webkit/im/im.js
+4
-3
4 additions, 3 deletions
sflphone-client-gnome/webkit/im/im.js
with
5 additions
and
3 deletions
sflphone-client-gnome/webkit/im/im.html
+
1
−
0
View file @
68e42262
...
@@ -13,5 +13,6 @@
...
@@ -13,5 +13,6 @@
<div
id=
"messages"
>
<div
id=
"messages"
>
</div>
</div>
</div>
</div>
<a
id=
"bottom"
></a>
</body>
</body>
</html>
</html>
This diff is collapsed.
Click to expand it.
sflphone-client-gnome/webkit/im/im.js
+
4
−
3
View file @
68e42262
...
@@ -15,7 +15,7 @@ function linkify(text){
...
@@ -15,7 +15,7 @@ function linkify(text){
}
}
function
add_message
(
message
,
peer_name
,
peer_number
,
peer_info
)
function
add_message
(
message
,
peer_name
,
peer_number
,
class_additionnal
)
{
{
var
display_name
=
'
Unknown
'
;
var
display_name
=
'
Unknown
'
;
if
(
peer_name
!=
''
)
{
if
(
peer_name
!=
''
)
{
...
@@ -23,7 +23,8 @@ function add_message (message, peer_name, peer_number, peer_info)
...
@@ -23,7 +23,8 @@ function add_message (message, peer_name, peer_number, peer_info)
}
}
var
msgBody
=
document
.
getElementById
(
'
messages
'
);
var
msgBody
=
document
.
getElementById
(
'
messages
'
);
msgBody
.
innerHTML
=
msgBody
.
innerHTML
+
'
<div class="message">
'
+
'
<span class="author">
'
+
display_name
+
'
: </span>
'
+
'
<p class="text">
'
+
linkify
(
message
)
+
'
</p></div>
'
;
msgBody
.
innerHTML
=
msgBody
.
innerHTML
+
'
<div class="message
'
+
class_additionnal
+
'
">
'
+
'
<span class="author">
'
+
display_name
+
'
: </span>
'
+
'
<p class="text">
'
+
linkify
(
message
)
+
'
</p></div>
'
;
document
.
getElementById
(
"
bottom
"
).
scrollIntoView
(
true
);
}
}
function
add_call_info_header
(
peer_name
,
peer_number
,
peer_info
)
function
add_call_info_header
(
peer_name
,
peer_number
,
peer_info
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment