Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
| 108 | $('#edit-name-0-value').val(settingObj.title); | 108 | $('#edit-name-0-value').val(settingObj.title); |
| 109 | if (settingObj.hasOwnProperty('parent')) { | 109 | if (settingObj.hasOwnProperty('parent')) { |
| 110 | $('#edit-parent option').each(function() { | 110 | $('#edit-parent option').each(function() { |
| 111 | - if ($(this).text().indexOf(settingObj.parent)) { | 111 | + if ($(this).text().trim() == settingObj.parent.trim()) { |
| 112 | $('#edit-parent option').attr('selected', false); | 112 | $('#edit-parent option').attr('selected', false); |
| 113 | $(this).attr('selected', true); | 113 | $(this).attr('selected', true); |
| 114 | } | 114 | } |
Please
register
or
login
to post a comment