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
ed010812
Commit
ed010812
authored
8 years ago
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use $.find instead of $.children
To allow for better template customization.
parent
38db959e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/converse-chatview.js
src/converse-chatview.js
+4
-3
No files found.
src/converse-chatview.js
View file @
ed010812
...
...
@@ -219,13 +219,14 @@
* Parameters:
* (Object) attrs: An object containing the message attributes.
*/
var
that
=
this
;
var
insert
=
prepend
?
this
.
$content
.
prepend
:
this
.
$content
.
append
;
_
.
compose
(
this
.
scrollDownMessageHeight
.
bind
(
this
),
function
(
$el
)
{
insert
.
call
(
th
is
.
$content
,
$el
);
insert
.
call
(
th
at
.
$content
,
$el
);
return
$el
;
}
.
bind
(
this
)
}
)(
this
.
renderMessage
(
attrs
));
},
...
...
@@ -345,7 +346,7 @@
'
username
'
:
username
,
'
extra_classes
'
:
extra_classes
})
)).
children
(
'
.chat-msg-content
'
).
first
().
text
(
text
)
)).
find
(
'
.chat-msg-content
'
).
first
().
text
(
text
)
.
addHyperlinks
()
.
addEmoticons
(
converse
.
visible_toolbar_buttons
.
emoticons
).
parent
();
},
...
...
This diff is collapsed.
Click to expand it.
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