git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@43 0f545695-f87b-41b6-9a03-7f16563b5454

This commit is contained in:
2016-01-11 17:05:00 +00:00
parent d5ada56dbd
commit 2c732a6081
14 changed files with 197 additions and 10 deletions
+8 -2
View File
@@ -2,7 +2,7 @@ define(['jquery', 'underscore', 'backbone',
'modules/home/home', 'modules/faq/faq', 'modules/index/index', 'modules/category/category', 'modules/item/item',
'modules/about/about', 'modules/search/search', 'modules/search/found', 'modules/more/more', 'modules/note/note',
'modules/sync/sync', 'modules/converter/converter', 'modules/donation/donation', 'modules/settings/settings',
'modules/debug/debug',
'modules/debug/debug','modules/maps/maps',
'model/note/noteCollection', 'model/category/categoryCollection', 'model/categoryItem/categoryItemCollection',
'model/item/itemCollection', 'model/item/ingredientiCollection', 'model/categoryItem/foundItemCollection',
'classes/cache', 'libs/fastclick',
@@ -11,7 +11,7 @@ define(['jquery', 'underscore', 'backbone',
HomeView, FaqView, IndexView, CategoryView, ItemView,
AboutView, SearchView, FoundView, MoreView, NoteView,
SyncView, ConverterView, DonationView, SettingsView,
DebugView,
DebugView, MapsView,
NoteCollection, CategoryCollection, CategoryItemCollection,
ItemCollection, IngredientiCollection, FoundItemCollection,
Cache, FastClick) {
@@ -53,6 +53,7 @@ define(['jquery', 'underscore', 'backbone',
'syncView(/)*founded': 'showSync',
'noteView': 'showNote',
'searchView': 'showSearch',
'mapsView': 'showMaps',
'debugView': 'showDebug',
'settingsView': 'showSettings',
'donationView': 'showDonation',
@@ -163,6 +164,11 @@ define(['jquery', 'underscore', 'backbone',
debugView.render();
this.changePage(debugView);
},
showMaps: function(){
var mapsView = new MapsView();
mapsView.render();
this.changePage(mapsView);
},
showSearch: function () {
var categories = new CategoryCollection();
// will render home view and navigate to homeView