浏览代码

Merge pull request #2434 from rakhnin/master

fix filter jQuery selector for names with "."
Thomas 10 年之前
父节点
当前提交
4095c9c276
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Resources/views/CRUD/base_list.html.twig

+ 1 - 1
Resources/views/CRUD/base_list.html.twig

@@ -219,7 +219,7 @@ file that was distributed with this source code.
                     jQuery('div.sonata-filters-box').slideDown();
                 }
 
-                var target = jQuery('#' + jQuery(e.target).attr('filter-target'));
+                var target = jQuery('div[id="' + jQuery(e.target).attr('filter-target') + '"]');
 
                 if (jQuery(target).is(":visible")) {
                     jQuery('i', this).removeClass('fa-check-square-o');