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

This commit is contained in:
2016-01-31 16:13:42 +00:00
parent 52ea2f542e
commit fc7970ec57
18 changed files with 133 additions and 54 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ define(['jquery', 'underscore', 'backbone',
'modules/sync/sync', 'modules/donation/donation','modules/settings/settings',
'modules/debug/debug','modules/maps/maps',
'model/note/noteCollection', 'model/category/categoryCollection', 'model/categoryItem/categoryItemCollection',
'model/item/itemCollection', 'model/item/ingredientiCollection', 'model/categoryItem/foundItemCollection',
'model/item/itemCollection', 'model/item/ingredientiCollection', 'model/categoryItem/foundItemCollection','model/authors/authorCollection',
'classes/cache', 'libs/fastclick',
'jqm', 'jQueryPlugins'],
function ($, _, Backbone,
@@ -13,7 +13,7 @@ define(['jquery', 'underscore', 'backbone',
SyncView, DonationView, SettingsView,
DebugView, MapsView,
NoteCollection, CategoryCollection, CategoryItemCollection,
ItemCollection, IngredientiCollection, FoundItemCollection,
ItemCollection, IngredientiCollection, FoundItemCollection, AuthorCollection,
Cache, FastClick) {
'use strict';
@@ -172,9 +172,9 @@ define(['jquery', 'underscore', 'backbone',
this.changePage(mapsView);
},
showSearch: function () {
var categories = new CategoryCollection();
var authors = new AuthorCollection();
// will render home view and navigate to homeView
var searchView = new SearchView({collection: categories});
var searchView = new SearchView({collection: authors});
//indexView.render();
searchView.bind('renderCompleted:Search', this.changePage, this);
},