Merge branch 'ssrihari-click-to-select-invite-link' into develop
This commit is contained in:
commit
e24e024f5f
3 changed files with 13 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ Make invite code input width consistent across borwsers [#4448](https://github.c
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)
|
Add oEmbed content to the mobile view [#4343](https://github.com/diaspora/diaspora/pull/4353)
|
||||||
|
One click to select the invite URL [#4447](https://github.com/diaspora/diaspora/pull/4447)
|
||||||
|
|
||||||
# 0.2.0.0
|
# 0.2.0.0
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ var app = {
|
||||||
setupGlobalViews: function() {
|
setupGlobalViews: function() {
|
||||||
app.hovercard = new app.views.Hovercard();
|
app.hovercard = new app.views.Hovercard();
|
||||||
app.aspectMemberships = new app.views.AspectMembership();
|
app.aspectMemberships = new app.views.AspectMembership();
|
||||||
|
app.sidebar = new app.views.Sidebar();
|
||||||
},
|
},
|
||||||
|
|
||||||
/* mixpanel wrapper function */
|
/* mixpanel wrapper function */
|
||||||
|
|
|
||||||
11
app/assets/javascripts/app/views/sidebar.js
Normal file
11
app/assets/javascripts/app/views/sidebar.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
app.views.Sidebar = app.views.Base.extend({
|
||||||
|
el: '.rightBar',
|
||||||
|
|
||||||
|
events: {
|
||||||
|
'click input#invite_code': 'selectInputText'
|
||||||
|
},
|
||||||
|
|
||||||
|
selectInputText: function(event) {
|
||||||
|
event.target.select();
|
||||||
|
}
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue