stephenswilliams / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

displaying column of added row of one multiple select in add new form #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add new elt form with multiple select 
2. modify selected values
3. displayed values not pretty

What is the expected output? What do you see instead?
each value separated by comma

What version of the product are you using? On what operating system?
1.3

Please provide any additional information below.

proposed solution:

function _fnOnRowAdded(data) {
...
if (this.nodeName.toLowerCase() == "select" || this.tagName.toLowerCase() == 
"select") {
// HACK for select values 
 sCellValue = 
$.map(
 $.makeArray($("option:selected", this)), 
 function(n, i){
      return $(n).text();
 }).join(",");
}
...

                        } 

Original issue reported on code.google.com by philippe...@gmail.com on 3 Jul 2011 at 5:40

GoogleCodeExporter commented 9 years ago
You are right. I have applied your fix in the latest version of plugin.

Thanks,
Jovan

Original comment by joc...@gmail.com on 20 Aug 2011 at 10:39