-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark read/unread displays the notification alert link wrongly (counter) #352
Comments
What are the contents of your |
|
OK, that looks correct. Next attempt: Is it fixed if you force-reload the page? I forgot to bump the version of the Javascript file in |
Relaod page - fixes it. However, it happens only when you mark your alert read and unread again. |
Btw I use this version with this PR incorporated |
Can you please confirm that after force-refreshing, it's still doing this when marking an alert read and unread again? If so, I'll need to take a look at the board on which this is occurring. |
OK, after checking on your board, the problem seems to be that in your Alternatively, in let openParenPos = str.lastIndexOf(' ('); and remove the space from the Perhaps the second is the more general fix we should apply to the plugin? [Edited to correct the Javascript line to edit and then to style it correctly as Javascript, not PHP] |
The second solution is better I think. |
Agreed. I think if we are to implement that fix, then we also should stop prefixing the new alert counts with spaces, so, we'd want to remove the space from the $hdr_alerts_el.html(MybbStuff.MyAlerts.prototype.stripParenAppendix(hdr_alerts_text) + ' (' + unread_count_fmt + ')'); window.document.title = title_bare + ' (' + unread_count_fmt + ')'; $('.usercp_nav_myalerts').html('<strong>' + sb_text_bare + ' (' + unread_count_fmt + ')</strong>'); Can you please test this on your board and make sure it works? |
Works fine ,thank you! |
The text was updated successfully, but these errors were encountered: