Commit 3bd7881bfac11566205573f2e5c94dc55dca608a

Authored by muyulingshi
1 parent e150eac1

rm bug

... ... @@ -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