Browse files

tidy lists

  • Loading branch information...
1 parent fd0d7eb commit b15e4c50ee291ac92fe297fd92d673ff632f52a5 @jpmckinney jpmckinney committed Apr 13, 2013
View
2 examples/reuters/widgets/AutocompleteWidget.js
@@ -52,7 +52,7 @@ AjaxSolr.AutocompleteWidget = AjaxSolr.AbstractTextWidget.extend({
params.push('fq=' + encodeURIComponent(values[i]));
}
params.push('q=' + this.manager.store.get('q').val());
- jQuery.getJSON(this.manager.solrUrl + 'select?' + params.join('&') + '&wt=json&json.wrf=?', {}, callback);
+ $.getJSON(this.manager.solrUrl + 'select?' + params.join('&') + '&wt=json&json.wrf=?', {}, callback);
}
});
View
6 examples/reuters/widgets/CurrentSearchWidget.9.js
@@ -41,11 +41,7 @@ AjaxSolr.CurrentSearchWidget = AjaxSolr.AbstractWidget.extend({
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]));
+ $target.append($('<li></li>').append(links[i]));
}
}
else {
View
6 examples/reuters/widgets/CurrentSearchWidget.js
@@ -34,11 +34,7 @@ AjaxSolr.CurrentSearchWidget = AjaxSolr.AbstractWidget.extend({
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]));
+ $target.append($('<li></li>').append(links[i]));
}
}
else {
View
6 examples/reuters/widgets/ResultWidget.f.js
@@ -51,11 +51,7 @@ AjaxSolr.ResultWidget = AjaxSolr.AbstractWidget.extend({
var $links = $('#links_' + doc.id);
$links.empty();
for (var j = 0, m = items.length; j < m; j++) {
- var $li = jQuery('<li></li>');
- if (this.separator && j > 0) {
- $li.append(this.separator);
- }
- $links.append($li.append(items[j]));
+ $links.append($('<li></li>').append(items[j]));
}
}
},
View
6 examples/reuters/widgets/ResultWidget.js
@@ -50,11 +50,7 @@ AjaxSolr.ResultWidget = AjaxSolr.AbstractWidget.extend({
var $links = $('#links_' + doc.id);
$links.empty();
for (var j = 0, m = items.length; j < m; j++) {
- var $li = jQuery('<li></li>');
- if (this.separator && j > 0) {
- $li.append(this.separator);
- }
- $links.append($li.append(items[j]));
+ $links.append($('<li></li>').append(items[j]));
}
}
},
View
3 widgets/jquery/PagerWidget.js
@@ -241,8 +241,9 @@ AjaxSolr.PagerWidget = AjaxSolr.AbstractWidget.extend(
var $target = $(this.target);
$target.empty();
+
for (var i = 0, l = links.length; i < l; i++) {
- var $li = jQuery('<li></li>');
+ var $li = $('<li></li>');
if (this.separator && i > 0) {
$li.append(this.separator);
}

0 comments on commit b15e4c5

Please sign in to comment.