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
c389b500
Commit
c389b500
authored
Jan 15, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused/dead code
parent
ff0f1d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
src/converse-roomslist.js
src/converse-roomslist.js
+0
-38
No files found.
src/converse-roomslist.js
View file @
c389b500
...
@@ -202,33 +202,6 @@
...
@@ -202,33 +202,6 @@
}
}
},
},
renderRoomsListElement
(
item
)
{
if
(
item
.
get
(
'
type
'
)
!==
'
chatroom
'
)
{
return
;
}
this
.
removeRoomsListElement
(
item
);
let
name
,
bookmark
;
if
(
item
.
get
(
'
bookmarked
'
))
{
bookmark
=
_
.
head
(
_converse
.
bookmarksview
.
model
.
where
({
'
jid
'
:
item
.
get
(
'
jid
'
)}));
name
=
bookmark
.
get
(
'
name
'
);
}
else
{
name
=
item
.
get
(
'
name
'
);
}
const
div
=
document
.
createElement
(
'
div
'
);
div
.
innerHTML
=
tpl_rooms_list_item
(
_
.
extend
(
item
.
toJSON
(),
{
'
allow_bookmarks
'
:
_converse
.
allow_bookmarks
,
'
info_leave_room
'
:
__
(
'
Leave this room
'
),
'
info_remove_bookmark
'
:
__
(
'
Unbookmark this room
'
),
'
info_add_bookmark
'
:
__
(
'
Bookmark this room
'
),
'
info_title
'
:
__
(
'
Show more information on this room
'
),
'
name
'
:
name
,
'
open_title
'
:
__
(
'
Click to open this room
'
)
}));
this
.
el
.
querySelector
(
'
.open-rooms-list
'
).
appendChild
(
div
.
firstChild
);
this
.
show
();
},
showOrHide
(
item
)
{
showOrHide
(
item
)
{
if
(
!
this
.
model
.
models
.
length
)
{
if
(
!
this
.
model
.
models
.
length
)
{
u
.
hideElement
(
this
.
el
);
u
.
hideElement
(
this
.
el
);
...
@@ -240,17 +213,6 @@
...
@@ -240,17 +213,6 @@
removeBookmark
:
_converse
.
removeBookmarkViaEvent
,
removeBookmark
:
_converse
.
removeBookmarkViaEvent
,
addBookmark
:
_converse
.
addBookmarkViaEvent
,
addBookmark
:
_converse
.
addBookmarkViaEvent
,
removeRoomsListElement
(
item
)
{
const
list_el
=
this
.
el
.
querySelector
(
'
.open-rooms-list
'
);
const
el
=
_
.
head
(
sizzle
(
`.available-chatroom[data-room-jid="
${
item
.
get
(
'
jid
'
)}
"]`
,
list_el
));
if
(
el
)
{
list_el
.
removeChild
(
el
);
}
if
(
list_el
.
childElementCount
===
0
)
{
this
.
hide
();
}
},
toggleRoomsList
(
ev
)
{
toggleRoomsList
(
ev
)
{
if
(
ev
&&
ev
.
preventDefault
)
{
ev
.
preventDefault
();
}
if
(
ev
&&
ev
.
preventDefault
)
{
ev
.
preventDefault
();
}
const
el
=
ev
.
target
;
const
el
=
ev
.
target
;
...
...
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