Skip to content

Commit

Permalink
Fix #1045: whitespace-separated queries in web
Browse files Browse the repository at this point in the history
  • Loading branch information
sampsyo committed Oct 28, 2014
1 parent dd7cd2f commit 4f3cd65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beetsplug/web/static/beets.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ var BeetsRouter = Backbone.Router.extend({
"item/query/:query": "itemQuery",
},
itemQuery: function(query) {
$.getJSON('/item/query/' + query, function(data) {
var queryURL = query.split(/\s+/).map(encodeURIComponent).join('/');
$.getJSON('/item/query/' + queryURL, function(data) {
var models = _.map(
data['results'],
function(d) { return new Item(d); }
Expand Down
2 changes: 2 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ Fixes:
:user:`multikatt`. :bug:`1027`, :bug:`1040`
* :doc:`/plugins/play`: Fix a potential crash when the command outputs special
characters. :bug:`1041`
* :doc:`/plugins/web`: Typed queries are now treated as separate query
components. :bug:`1045`


1.3.8 (September 17, 2014)
Expand Down

0 comments on commit 4f3cd65

Please sign in to comment.