Showing
1 changed file
with
6 additions
and
6 deletions
| ... | ... | @@ -77,13 +77,13 @@ |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | if ($('#edit-title-0-value').length > 0 && $('#edit-link-0-uri').length > 0 && hasStorage('menu_date', MENU_DATE) && hasStorage('link_date', TAXONOMY_DATE)) { |
| 80 | - var settingObj = storageOper('menu_date', $.parseJSON(localStorage.getItem('menu_date'))); | |
| 80 | + var MenusettingObj = storageOper('menu_date', $.parseJSON(localStorage.getItem('menu_date'))); | |
| 81 | 81 | $('#edit-link-0-uri').val('/'); |
| 82 | - $('#edit-title-0-value').val(settingObj.title); | |
| 82 | + $('#edit-title-0-value').val(MenuMenusettingObj.title); | |
| 83 | 83 | |
| 84 | - if (settingObj.hasOwnProperty('parent')) { | |
| 84 | + if (MenusettingObj.hasOwnProperty('parent')) { | |
| 85 | 85 | $('#edit-menu-parent option').each(function() { |
| 86 | - if ($(this).text().indexOf(settingObj.parent) > 0) { | |
| 86 | + if ($(this).text().indexOf(MenusettingObj.parent) > 0) { | |
| 87 | 87 | $('#edit-parent option').attr('selected', false); |
| 88 | 88 | $(this).attr('selected', true); |
| 89 | 89 | $('#edit-menu-parent').trigger("chosen:updated"); |
| ... | ... | @@ -91,8 +91,8 @@ |
| 91 | 91 | }); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | - if (settingObj.hasOwnProperty('url')) { | |
| 95 | - $('#edit-link-0-uri').val('/taxonomy/term/' + settingObj.url); | |
| 94 | + if (MenusettingObj.hasOwnProperty('url')) { | |
| 95 | + $('#edit-link-0-uri').val('/taxonomy/term/' + MenusettingObj.url); | |
| 96 | 96 | } else { |
| 97 | 97 | $('#edit-link-0-uri').val('/'); |
| 98 | 98 | } | ... | ... |
Please
register
or
login
to post a comment