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
98b27fbe
Commit
98b27fbe
authored
Oct 26, 2018
by
JC Brand
Committed by
GitHub
Oct 26, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1271 from Ppjet6/issue-1252-bookmark-title
Fix #1252, incorrect bookmark icon title
parents
0079ba91
edf98c69
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
CHANGES.md
CHANGES.md
+1
-0
src/converse-bookmarks.js
src/converse-bookmarks.js
+5
-0
No files found.
CHANGES.md
View file @
98b27fbe
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
-
Use ES2015 modules instead of UMD.
-
Use ES2015 modules instead of UMD.
-
#1257 Prefer 'probably' over 'maybe' when evaluating audio play support.
-
#1257 Prefer 'probably' over 'maybe' when evaluating audio play support.
-
#1261 File upload not working
-
#1261 File upload not working
-
#1252 Correctly reflect the state in bookmark icon title.
## 4.0.3 (2018-10-22)
## 4.0.3 (2018-10-22)
...
...
src/converse-bookmarks.js
View file @
98b27fbe
...
@@ -98,14 +98,19 @@ converse.plugins.add('converse-bookmarks', {
...
@@ -98,14 +98,19 @@ converse.plugins.add('converse-bookmarks', {
},
},
onBookmarked
()
{
onBookmarked
()
{
const
{
_converse
}
=
this
.
__super__
,
{
__
}
=
_converse
;
const
icon
=
this
.
el
.
querySelector
(
'
.toggle-bookmark
'
);
const
icon
=
this
.
el
.
querySelector
(
'
.toggle-bookmark
'
);
if
(
_
.
isNull
(
icon
))
{
if
(
_
.
isNull
(
icon
))
{
return
;
return
;
}
}
if
(
this
.
model
.
get
(
'
bookmarked
'
))
{
if
(
this
.
model
.
get
(
'
bookmarked
'
))
{
icon
.
classList
.
add
(
'
button-on
'
);
icon
.
classList
.
add
(
'
button-on
'
);
icon
.
title
=
__
(
'
Unbookmark this groupchat
'
);
}
else
{
}
else
{
icon
.
classList
.
remove
(
'
button-on
'
);
icon
.
classList
.
remove
(
'
button-on
'
);
icon
.
title
=
__
(
'
Bookmark this groupchat
'
);
}
}
},
},
...
...
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