rasyahadlinugraha / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

SelectableBehavior.AjaxSelectionCallback's stop function wrong #258

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
mySelectableBehavior.setEventListener( new AjaxSelectionCallback(){...});
2.
overwrite the selection method of AjaxSelectionCallback
3.
mySelectableBehavior.setFilter( "tbody tr" );
4.
Add mySelectableBehavior to a table
5.
take a look at the ajax request in e.g. firebug. You will see that the 
selectedItems parameter is empty. 

The reason for that is line 109 of SelectableBehavior.
Instead of the children() function you should better use find().
This is what fixed the problem in my case

What version of the product are you using? On what operating system?
wiquery ui 6.0.0

Providing a good description and a patch or a quickstart [1] will really
help us fixing the problem quickly! Please provide any additional
information below.

[1] http://code.google.com/p/wiquery/wiki/Quickstart15

Original issue reported on code.google.com by pogopaul...@gmail.com on 14 Sep 2012 at 2:18

GoogleCodeExporter commented 9 years ago
fixed on master

Original comment by hielke.hoeve on 9 Nov 2012 at 2:30