Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
little fix on removeSubMenuItem()
Browse files Browse the repository at this point in the history
  • Loading branch information
netusco committed May 10, 2014
1 parent 12e81fd commit e0fc745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/modules/core/services/menus.client.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ angular.module('core').service('Menus', [
// Search for menu item to remove
for (var itemIndex in this.menus[menuId].items) {
for (var subitemIndex in this.menus[menuId].items[itemIndex].subitems) {
if (this.menus[menuId].items[itemIndex].subitems[subitemIndex].link === menuItemURL) {
if (this.menus[menuId].items[itemIndex].subitems[subitemIndex].link === submenuItemURL) {
this.menus[menuId].items[itemIndex].subitems.splice(subitemIndex, 1);
}
}
Expand Down

0 comments on commit e0fc745

Please sign in to comment.