Skip to content

Commit

Permalink
remove theme dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
James McKinney committed Apr 13, 2013
1 parent af6d2ce commit f1d1463
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion widgets/jquery/PagerWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,16 @@ AjaxSolr.PagerWidget = AjaxSolr.AbstractWidget.extend(
if (this.totalPages) {
links.unshift(this.pageLinkOrSpan(this.previousPage(), [ 'pager-disabled', 'pager-prev' ], this.prevLabel));
links.push(this.pageLinkOrSpan(this.nextPage(), [ 'pager-disabled', 'pager-next' ], this.nextLabel));
AjaxSolr.theme('list_items', this.target, links, this.separator);

var $target = $(this.target);
$target.empty();
for (var i = 0, l = links.length; i < l; i++) {
var $li = jQuery('<li></li>');
if (this.separator && i > 0) {
$li.append(this.separator);
}
$target.append($li.append(links[i]));
}
}
},

Expand Down

0 comments on commit f1d1463

Please sign in to comment.