Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.
/ scenic Public archive

Commit

Permalink
Ready to create 'Show Pictures' function.
Browse files Browse the repository at this point in the history
Client-side preperation for 'Show Pictures' functions.
Not yet added a handler.
  • Loading branch information
HyeonJe Jun committed Nov 19, 2012
1 parent 82cf086 commit 87b7537
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions client/js/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function Socket(channel) {
window.app_view.navbar_view.setUploadPicHandler(function(e) {
(new UploadPicDialogView(_this.channel));
});
window.app_view.navbar_view.setShowPicHandler(function(e) {
});

window.chat_view.focusInput();

Expand Down
3 changes: 3 additions & 0 deletions client/js/views/navbar-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ var NavbarView = Backbone.View.extend({
},
setUploadPicHandler: function(handler) {
$('a.upload-pic', this.object).click(handler);
},
setShowPicHandler: function(handler) {
$('a.show-pic', this.object).click(handler);
}
});
2 changes: 1 addition & 1 deletion views/templates.jade
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ script#navbar_template(type='text/html')
li
a.upload-pic(href='\#{{ channel }}') Upload Pictures
li
a(href='#') Pictures
a.show-pic(href='\#{{ channel }}') Show Pictures
ul.nav.pull-right
li.dropdown
a.dropdown-toggle(href='\#{{ channel }}', data-toggle="dropdown")
Expand Down

0 comments on commit 87b7537

Please sign in to comment.