- Earlier, triple-clicking or drag & select had to be performed to select - Should consider a copy button Moving away from the inline onClick handler It didn't feel right to be writing js in a helper. Refactoring setupInviteLinks into a sidebar Backbone View
11 lines
203 B
JavaScript
11 lines
203 B
JavaScript
app.views.Sidebar = app.views.Base.extend({
|
|
el: '.rightBar',
|
|
|
|
events: {
|
|
'click input#invite_code': 'selectInputText'
|
|
},
|
|
|
|
selectInputText: function(event) {
|
|
event.target.select();
|
|
}
|
|
});
|