Lines 946-952
Link Here
|
946 |
// select the corresponding option |
946 |
// select the corresponding option |
947 |
$(current_column).find("select option").each(function(){ |
947 |
$(current_column).find("select option").each(function(){ |
948 |
opt = $(this).text().toLowerCase(); |
948 |
opt = $(this).text().toLowerCase(); |
|
|
949 |
itm = itm.replace(/.*->(.*)/,"$1"); //If item type is part of a group we need to clear the parent description |
949 |
opt = opt.replace(/^\s*|\s*$/g,''); |
950 |
opt = opt.replace(/^\s*|\s*$/g,''); |
|
|
951 |
console.log("opt "+opt); |
952 |
console.log("itm "+itm.toLowerCase() ); |
950 |
if ( opt == itm.toLowerCase() ) { |
953 |
if ( opt == itm.toLowerCase() ) { |
951 |
$(this).attr('selected', 'selected'); |
954 |
$(this).attr('selected', 'selected'); |
952 |
} |
955 |
} |
953 |
- |
|
|