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