Refactor onFileReadComplete
- extract file content processing (after determination of file type) into reusable function
FileLoader API to request files from a folder on the server using XMLHttpRequest
- function loadFileFromRepository() in public API designed as mirror to loadFiles()
Add initial set of cellref files and manifest/index to repository
- available files are listed in the "data-index.js" file that the view require()s
File Repository View
- new view listing the files available in the repository (read from the data-index.js module)
- hosted files can be selected from the "Cellrefs" menu button in the top toolbar
- AppView listens for the "repository:fileselected" event and invokes FileLoader
- reuse the styles from "#searchHelp" for dropdown menus
Exception in InfoView when searching for non-existent site
- SiteList.findSiteWithSector() must return null instead of undefined to conform with AppState's selectedSite semantics
Merge branch 'hosted-cellrefs'
Improve readability of dependencies on templates and data index
- replace relative paths with mappings in the global RequireJS config
Build setup improvements
- exclusion of backbone no longer necessary, bundle into app
- exclude data-index.js, so it's potentially maintainable on the server
- keep previous build directory to save upload of assets in /images and /data
Build setup: remove redundant slash
Consolidate padding rules of unordered lists
File repository dropdown: add header and close button
- redistribute margins and padding between dropdown-menu and their children
- Search help panel: add header, align styles with file repository panel
Ensure veil background and dialogs cover everything else (e.g. menus/panels)
Instantiate FileRepositoryView before slow MapView
Cellref Data Update
- add good files of frequently used samples (disabled for errors: CHL_Entel_RPMO, MY_Maxis_CHR_KL, US_TMO_GPEH_SF2011)
- rename existing files for consistency
Add styles to emulate pressed/active state of buttons, use for "Cellrefs" menu button