Skip to content

Commit

Permalink
Update search page.
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Jul 28, 2012
1 parent e1671c9 commit ef32baa
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Symfony/web/js/views/main_panel/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ define([
'collections/event_list',
'views/general/event_list',
'helpers/template_manager',
'helpers/assets'
], function($, _, Backbone, RecommendationsView,
UserList, UserListView, EventList, EventListView, templateManager, Assetics) {
'helpers/assets',
'event_manager'
], function($, _, Backbone, RecommendationsView, UserList, UserListView,
EventList, EventListView, templateManager, Assetics, Dispatcher) {
var SearchView = Backbone.View.extend({

initialize : function() {
Expand All @@ -20,6 +21,10 @@ define([

el : 'div#search',

events : {
'click .button_big' : 'back',
},

makeSearch : function() {
this.userList.params = this.userParams;
this.userList.fetch();
Expand Down Expand Up @@ -73,6 +78,10 @@ define([
this.initElements();
this.initUserList();
this.loaded = true;
},

back : function() {
Dispatcher.trigger('back');
}
});

Expand Down

0 comments on commit ef32baa

Please sign in to comment.