payu2107 / zii

Automatically exported from code.google.com/p/zii
0 stars 0 forks source link

A bug of CGridView's JS #45

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
in jquery.yiigridview.js on 131 line.
fix it to  $('#'+this).html($(data).find('#'+this).html()); 

What is the expected output? What do you see instead?
When I click the table header to sort the column, there will be a more div
tag after a ajax request.

see the html source section:

<div class="grid-view" id="yw1"><div class="grid-view" id="yw1">
<div
title="/index.php?r=admin%2Fuser%2Findex&amp;User_sort=email&amp;ajax=yw1"
style="display: none;" class="keys"><span>11</span></div>
<div class="summary">显示 1-1 共 1 行 &nbsp;</div>
<table class="items">
<thead>

What version of the product are you using? On what operating system?
Version 1.1.1.r1907

Original issue reported on code.google.com by lwf163 on 15 May 2010 at 1:16