this._packageSearchResultContainer.find('.pageNavigation').wcfPages('destroy').remove();
if (this._pageCount > 1) {
- $('<div class="contentNavigation" />').insertBefore(this._packageSearchResultList).wcfPages({
+ // TODO: Fix ui.wcfPages to properly synchronize multiple instances without triggering events
+ /*$('<div class="contentNavigation" />').insertBefore(this._packageSearchResultList).wcfPages({
activePage: this._pageNo,
maxPage: this._pageCount
- }).bind('wcfpagesswitched', $.proxy(this._showPage, this));
+ }).on('wcfpagesswitched', $.proxy(this._showPage, this));*/
$('<div class="contentNavigation" />').insertAfter(this._packageSearchResultList).wcfPages({
activePage: this._pageNo,
maxPage: this._pageCount
- }).bind('wcfpagesswitched', $.proxy(this._showPage, this));
+ }).on('wcfpagesswitched', $.proxy(this._showPage, this));
}
},
else {
var $previousImage = $('<span class="icon icon16 icon-double-angle-left" />');
$previousElement.append($previousImage);
- $previousElement.addClass('disabled');
+ $previousElement.addClass('disabled').removeClass('button');
$previousImage.addClass('disabled');
}
else {
var $nextImage = $('<span class="icon icon16 icon-double-angle-right" />');
$nextElement.append($nextImage);
- $nextElement.addClass('disabled');
+ $nextElement.addClass('disabled').removeClass('button');
$nextImage.addClass('disabled');
}