Permalink
Browse files

remove theme dependency

  • Loading branch information...
1 parent af6d2ce commit f1d1463359f032ca324ff779f873f595e487380d @jpmckinney jpmckinney committed Apr 13, 2013
Showing with 10 additions and 1 deletion.
  1. +10 −1 widgets/jquery/PagerWidget.js
@@ -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]));
+ }
}
},

0 comments on commit f1d1463

Please sign in to comment.