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
80d8b897
Commit
80d8b897
authored
Nov 01, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the VCard rendering code.
Probably won't make it in next release.
parent
43b9fa0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
converse.js
converse.js
+0
-28
src/templates/chatbox.html
src/templates/chatbox.html
+0
-1
No files found.
converse.js
View file @
80d8b897
...
@@ -1207,7 +1207,6 @@
...
@@ -1207,7 +1207,6 @@
events
:
{
events
:
{
'
click .close-chatbox-button
'
:
'
close
'
,
'
click .close-chatbox-button
'
:
'
close
'
,
'
click .toggle-chatbox-button
'
:
'
minimize
'
,
'
click .toggle-chatbox-button
'
:
'
minimize
'
,
'
click .view-vcard-button
'
:
'
renderVCard
'
,
'
keypress textarea.chat-textarea
'
:
'
keyPressed
'
,
'
keypress textarea.chat-textarea
'
:
'
keyPressed
'
,
'
click .toggle-smiley
'
:
'
toggleEmoticonMenu
'
,
'
click .toggle-smiley
'
:
'
toggleEmoticonMenu
'
,
'
click .toggle-smiley ul li
'
:
'
insertEmoticon
'
,
'
click .toggle-smiley ul li
'
:
'
insertEmoticon
'
,
...
@@ -1271,33 +1270,6 @@
...
@@ -1271,33 +1270,6 @@
return
this
.
showStatusMessage
();
return
this
.
showStatusMessage
();
},
},
renderVCard
:
function
()
{
var
$chat_body
=
this
.
$el
.
find
(
'
.chat-body
'
);
if
(
this
.
$el
.
find
(
'
.vcard-info
'
).
length
)
{
return
this
.
returnToChat
();
}
$chat_body
.
children
().
addClass
(
'
hidden
'
);
$chat_body
.
append
(
converse
.
templates
.
vcard
(
_
.
extend
(
this
.
model
.
toJSON
(),
{
label_return
:
__
(
'
Return to chat
'
)
})
));
$chat_body
.
find
(
'
input[type=button]
'
).
on
(
'
click
'
,
this
.
returnToChat
.
bind
(
this
));
return
this
;
},
returnToChat
:
function
(
ev
)
{
if
(
ev
&&
ev
.
preventDefault
)
{
ev
.
preventDefault
();
}
var
$chat_body
=
this
.
$el
.
find
(
'
.chat-body
'
);
this
.
$el
.
find
(
'
.vcard-info
'
).
hide
(
function
()
{
$
(
this
).
remove
();
$chat_body
.
children
().
removeClass
(
'
hidden
'
);
}
);
return
this
;
},
setWidth
:
function
()
{
setWidth
:
function
()
{
// If a custom width is applied (due to drag-resizing),
// If a custom width is applied (due to drag-resizing),
// then we need to set the width of the .chatbox element as well.
// then we need to set the width of the .chatbox element as well.
...
...
src/templates/chatbox.html
View file @
80d8b897
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
<div
class=
"chat-head chat-head-chatbox"
>
<div
class=
"chat-head chat-head-chatbox"
>
<a
class=
"chatbox-btn close-chatbox-button icon-close"
title=
"{{info_close}}"
></a>
<a
class=
"chatbox-btn close-chatbox-button icon-close"
title=
"{{info_close}}"
></a>
<a
class=
"chatbox-btn toggle-chatbox-button icon-minus"
title=
"{{info_minimize}}"
></a>
<a
class=
"chatbox-btn toggle-chatbox-button icon-minus"
title=
"{{info_minimize}}"
></a>
<a
class=
"chatbox-btn view-vcard-button icon-eye"
title=
"{{info_view}}"
></a>
<div
class=
"chat-title"
>
<div
class=
"chat-title"
>
{[ if (url) { ]}
{[ if (url) { ]}
<a
href=
"{{url}}"
target=
"_blank"
class=
"user"
>
<a
href=
"{{url}}"
target=
"_blank"
class=
"user"
>
...
...
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