|
Lines 924-930
Link Here
|
| 924 |
// select the corresponding option |
924 |
// select the corresponding option |
| 925 |
$(current_column).find("select option").each(function(){ |
925 |
$(current_column).find("select option").each(function(){ |
| 926 |
opt = $(this).text().toLowerCase(); |
926 |
opt = $(this).text().toLowerCase(); |
|
|
927 |
itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description |
| 927 |
opt = opt.replace(/^\s*|\s*$/g,''); |
928 |
opt = opt.replace(/^\s*|\s*$/g,''); |
|
|
929 |
console.log("opt "+opt); |
| 930 |
console.log("itm "+itm.toLowerCase() ); |
| 928 |
if ( opt == itm.toLowerCase() ) { |
931 |
if ( opt == itm.toLowerCase() ) { |
| 929 |
$(this).attr('selected', 'selected'); |
932 |
$(this).attr('selected', 'selected'); |
| 930 |
} |
933 |
} |
| 931 |
- |
|
|