] REFACTOR CODE select3_s.js - replace 6 similar scripts with 1 common script, pass in the variables needed for the distint values of each
[why]
x] replace 6 similar scripts with 1 common script, pass in the 'distinct' variables needed to customize for each app, uses svr side app object to set current app,
x] maintain & develop 1 script VS 6
[where]
x] PAGE - add/{l5}
x] article
x] item
x] step
x] person
x] task
x] location
[when]
x] 2014-01
[example]
x] http://sospep/add/article
x] no visible difference between
[how-to]
]
[reference]
x] PAGE add/article -
x] PAGE add/item
x] PAGE add/step
x] PAGE add/person
x] PAGE add/task
x] PAGE add/location
developer implementation
[.process]
x] create select3.js based on select3_s.js
x]
*] rewrite select3.js
]
x] change links on PAGES
x] form select3_s to select3
x] adding selL1fill() function to our global.js file
x] done
x] calling selL1fill() after current app var has been set
] IIFE
] setting current_app in global VS in script (IIFE or call)
[.notes]
] replacing hardcoded parents with generated parents
status
[-previously-]
[2014-01-26] CREATE
x] select3.js - replaces select3_s.js - replace app specific vars with generic vars
x] replace calls to qry/pages ex selectBooksInLibary to -a versions which are generic VS specific, (id VS id_chapter)
x] change to 'immediately invoked' function for fillL1 VS called function
] PRB - passing in qryL1, script that fills the selects is executing B4 the script that passes the necessary vals to the script