I noticed the bug with
"Mark forums read" and this style.
When you click on "
Mark forums read" nothing happened, but all is OK after refresh because you changed class paramter from '<dl>' tag to '<dt> tag and javascript
ajax.js from prosilever's template directory is programmed to find this class in '<dl> tag.
So, I modified ajax.js on two locations in this script (for forums and topics) on this way:
For function
phpbb.addAjaxCallback('mark_forums_read', function(res)
Code: Select all
$('li.row').find('dt[class*="forum_unread"]').each(function() {
var $this = $(this);
$.each(iconsArray, function(unreadClass, readClass) {
if ($this.hasClass(unreadClass)) {
$this.removeClass(unreadClass).addClass(readClass);
}
});
$this.parent().children('dt[title="' + unreadTitle + '"]').attr('title', readTitle);
$this.parent().children('dd').children('a').remove();
});
For function
phpbb.addAjaxCallback('mark_topics_read', function(res, updateTopicLinks)
Code: Select all
$('li.row').find(unreadClassSelectors).each(function() {
var $this = $(this);
$.each(classMap, function(unreadClass, readClass) {
if ($this.hasClass(unreadClass)) {
$this.removeClass(unreadClass).addClass(readClass);
}
});
$this.parent().children('dt[title="' + unreadTitle + '"]').attr('title', readTitle);
$this.parent().children('dd').children('a').remove();
});
After that, all work nice.