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
3223fb8c
Commit
3223fb8c
authored
Dec 19, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`createMessage` no longer takes jQuery object
parent
18d59d5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/converse-headline.js
src/converse-headline.js
+5
-7
No files found.
src/converse-headline.js
View file @
3223fb8c
...
...
@@ -14,23 +14,21 @@
],
factory
);
}(
this
,
function
(
converse
,
converse_api
)
{
"
use strict
"
;
var
$
=
converse_api
.
env
.
jQuery
,
_
=
converse_api
.
env
.
_
,
var
_
=
converse_api
.
env
.
_
,
utils
=
converse_api
.
env
.
utils
,
__
=
utils
.
__
.
bind
(
converse
);
var
onHeadlineMessage
=
function
(
message
)
{
/* Handler method for all incoming messages of type "headline".
*/
var
$message
=
$
(
message
),
from_jid
=
$message
.
attr
(
'
from
'
);
var
from_jid
=
message
.
getAttribute
(
'
from
'
);
if
(
utils
.
isHeadlineMessage
(
message
))
{
converse
.
chatboxes
.
create
({
'
id
'
:
from_jid
,
'
jid
'
:
from_jid
,
'
fullname
'
:
from_jid
,
'
type
'
:
'
headline
'
}).
createMessage
(
$
message
,
undefined
,
message
);
}).
createMessage
(
message
,
undefined
,
message
);
converse
.
emit
(
'
message
'
,
message
);
}
return
true
;
...
...
@@ -78,7 +76,7 @@
initialize
:
function
()
{
if
(
typeof
this
.
setDimensions
!==
"
undefined
"
)
{
// setDimensions is defined for dragresize
$
(
window
).
on
(
'
resize
'
,
_
.
debounce
(
this
.
setDimensions
.
bind
(
this
),
100
));
window
.
addEventListener
(
'
resize
'
,
_
.
debounce
(
this
.
setDimensions
.
bind
(
this
),
100
));
}
this
.
disable_mam
=
true
;
// Don't do MAM queries for this box
this
.
model
.
messages
.
on
(
'
add
'
,
this
.
onMessageAdded
,
this
);
...
...
@@ -105,7 +103,7 @@
);
if
(
typeof
this
.
setWidth
!==
"
undefined
"
)
{
// setWidth is defined for dragresize
$
(
window
).
on
(
'
resize
'
,
_
.
debounce
(
this
.
setWidth
.
bind
(
this
),
100
));
window
.
addEventListener
(
'
resize
'
,
_
.
debounce
(
this
.
setWidth
.
bind
(
this
),
100
));
}
this
.
$content
=
this
.
$el
.
find
(
'
.chat-content
'
);
converse
.
emit
(
'
chatBoxOpened
'
,
this
);
...
...
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