Skip to content

Commit

Permalink
Fixes Gridview JS to respect # in filterUrl
Browse files Browse the repository at this point in the history
fixes #12836
  • Loading branch information
cebe committed Oct 25, 2016
1 parent 5308aa1 commit 950f133
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/assets/yii.gridView.js
Expand Up @@ -118,6 +118,10 @@

var pos = settings.filterUrl.indexOf('?');
var url = pos < 0 ? settings.filterUrl : settings.filterUrl.substring(0, pos);
var hashPos = settings.filterUrl.indexOf('#');
if (hashPos >= 0) {
url += settings.filterUrl.substring(pos);
}

$grid.find('form.gridview-filter-form').remove();
var $form = $('<form/>', {
Expand Down

0 comments on commit 950f133

Please sign in to comment.