task

4800-v-003

menu main {object}

[previously]

  1. [2015-06-06][00:00] main menu links
    1. ] dynamically built links to each of the main pages using/based the current race setting

[currently]

  1. [00:00] PAGE layout
    1. ] use var's for links in place of hard ,
    2. ] TEST links render on index page fine,
    3. ] PRB other pages dont load, ERROR = undefined /rankingsURl
  2. [00:00] PAGE route/index
    1. x] ADDed same function(copy+paste) to build links to each route to each page(*3), pass in the same vars to each page,
      1. +=] PAGE register, ] PAGE login
    2. x] TEST = PASS
    3. *] PRB = !DRY
    4. ] CREATE - single function, gernated "menu" object
    5. ] JSON.stringify  to send, menu:JSON.stringify(menuMain)
    6. ] JSON.parse() to read,
    7. ] PASS - the menu object to each page
  3. [00:00] DEFINE object
    1. ] menuMain - properties include links for each of the pages
  4. [00:00] CREATE function - buildMenuMain()
    1. ] sets the properties of menuMain,
    2. ] call it on each page ?? YES b/c user could access from BM or url hack vs navigating
  5. [00:00] PASS object 'menuMain' into /view/*
    1. ] menu:menuMain into each page that needs it (aka all pages)
  6. [00:00] UPDATE layout
    1. ] reference menu.selectionsUrl VS selections.Url in menu settings
  7. [00:00] UPDATE PAGE view/index
    1. ] edit reference to link vars in body, change to menu.
  8. [00:00] TEST 4800-v-003-menu
    1. ] # 5242 - i] PRB PG register, i] PRB PG login ]

[next]

  1. ]
Details Photos Edit more

Details

ID: 5245

NAME: 4800-v-003-001-main-MENU-object

DESCRIPTION: 5245] replace hardcoded links in mainMenu with dynamically generated links (mainMenu object)

START DATE TIME: 2015-06-06 11:38:22

EST DURATION: 01:00:00

END DATE TIME: 2015-06-06 12:38:22

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities