clean up logging
get link pointer showing up correctly on submenu items (href was left off)
This commit is contained in:
@ -67,9 +67,9 @@
|
||||
<li class="sub-menu" ng-repeat="item in menuTopics">
|
||||
<!-- TODO: implement conditional rendering -->
|
||||
<a ng-click="expanded = !expanded" href=""><i class="fa {{item.class}}"></i><span>{{item.name}}</span></a>
|
||||
<ul class="slideDown" ng-show="expanded" style="display:block;">
|
||||
<ul class="slideDown" ng-show="expanded">
|
||||
<li ng-repeat="child in item.children">
|
||||
<a ng-click="renderLesson(child.link)" title="link to {{child.name}}">{{child.name}}</a>
|
||||
<a ng-click="renderLesson(child.link)" title="link to {{child.name}}" href="">{{child.name}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
@ -41,7 +41,7 @@ goat.controller('goatMenu', function($scope, $http) {
|
||||
goat.addMenuClasses = function(arr) {
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
var menuItem = arr[i];
|
||||
console.log(menuItem);
|
||||
//console.log(menuItem);
|
||||
if (arr[i].type && arr[i].type === 'CATEGORY') {
|
||||
arr[i].class = 'fa-angle-right pull-right';
|
||||
}
|
||||
|
Reference in New Issue
Block a user