Commit de121063ef97b48bbcf10169ce316b98ba133243

Authored by muyulingshi
1 parent 60451ad8

rm bug

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