Project

General

Profile

« Previous | Next » 

Revision 59788

[Library|Trunk]

-add check about active menu

View differences:

menu.ts
38 38
    if (!menu.markAsActive) {
39 39
      return false;
40 40
    }
41
    if (currentRoute == menu.route) {
41
    if (menu.route.length > 0 && (currentRoute == menu.route  || currentRoute.indexOf(menu.route) != -1)) {
42 42
      return true;
43 43
    } else if (menu.items.length > 0) {
44 44
      for (let menuItem of menu.items) {

Also available in: Unified diff