Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove theme dependency

  • Loading branch information...
commit f1d1463359f032ca324ff779f873f595e487380d 1 parent af6d2ce
@jpmckinney jpmckinney authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 widgets/jquery/PagerWidget.js
View
11 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]));
+ }
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.