Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
84812663
Commit
84812663
authored
May 28, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the new msg indicator clickable
parent
b6fcc9b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/converse-chatview.js
src/converse-chatview.js
+8
-1
No files found.
src/converse-chatview.js
View file @
84812663
...
@@ -68,7 +68,8 @@
...
@@ -68,7 +68,8 @@
'
click .toggle-smiley
'
:
'
toggleEmoticonMenu
'
,
'
click .toggle-smiley
'
:
'
toggleEmoticonMenu
'
,
'
click .toggle-smiley ul li
'
:
'
insertEmoticon
'
,
'
click .toggle-smiley ul li
'
:
'
insertEmoticon
'
,
'
click .toggle-clear
'
:
'
clearMessages
'
,
'
click .toggle-clear
'
:
'
clearMessages
'
,
'
click .toggle-call
'
:
'
toggleCall
'
'
click .toggle-call
'
:
'
toggleCall
'
,
'
click .new-msgs-indicator
'
:
'
viewUnreadMessages
'
},
},
initialize
:
function
()
{
initialize
:
function
()
{
...
@@ -703,6 +704,12 @@
...
@@ -703,6 +704,12 @@
}
}
},
150
),
},
150
),
viewUnreadMessages
:
function
()
{
this
.
model
.
set
(
'
scrolled
'
,
false
);
this
.
scrollDown
();
},
scrollDownMessageHeight
:
function
(
$message
)
{
scrollDownMessageHeight
:
function
(
$message
)
{
if
(
this
.
$content
.
is
(
'
:visible
'
)
&&
!
this
.
model
.
get
(
'
scrolled
'
))
{
if
(
this
.
$content
.
is
(
'
:visible
'
)
&&
!
this
.
model
.
get
(
'
scrolled
'
))
{
this
.
$content
.
scrollTop
(
this
.
$content
.
scrollTop
()
+
$message
[
0
].
scrollHeight
);
this
.
$content
.
scrollTop
(
this
.
$content
.
scrollTop
()
+
$message
[
0
].
scrollHeight
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment