Add title attribute to categorize bubble '>' multi links.

This commit is contained in:
Max Goodman
2013-05-28 11:46:11 -07:00
parent d96416a3d2
commit 71cadef1bf
2 changed files with 4 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ Note: there are a couple of places outside of your subreddit where someone can c
create_multi = _('create a new multi'),
awesomeness_goes_here = _('awesomeness goes here'),
add_multi_sr = _('add a subreddit to your multi.'),
open_multi = _('open this multi'),
)
class StringHandler(object):

View File

@@ -378,7 +378,7 @@ r.multi.SubscribeButton = Backbone.View.extend({
r.multi.MultiSubscribeBubble = r.ui.Bubble.extend({
className: 'multi-selector hover-bubble anchor-right',
template: _.template('<div class="title"><strong><%- title %></strong><a class="sr" href="/r/<%- sr_name %>">/r/<%- sr_name %></a></div><div class="throbber"></div>'),
itemTemplate: _.template('<label><input class="add-to-multi" type="checkbox" data-path="<%- path %>" <%- checked %>><%- name %><a href="<%- path %>" target="_blank">&rsaquo;</a></label>'),
itemTemplate: _.template('<label><input class="add-to-multi" type="checkbox" data-path="<%- path %>" <%- checked %>><%- name %><a href="<%- path %>" target="_blank" title="<%- open_multi %>">&rsaquo;</a></label>'),
itemCreateTemplate: _.template('<label><form class="create-multi"><input type="text" class="multi-name" placeholder="<%- create_msg %>"><div class="error create-multi-error"></div></form></label>'),
events: {
@@ -412,7 +412,8 @@ r.multi.MultiSubscribeBubble = r.ui.Bubble.extend({
name: multi.get('name'),
path: multi.get('path'),
checked: multi.subreddits.getByName(this.options.srName)
? 'checked' : ''
? 'checked' : '',
open_multi: r.strings('open_multi')
}))
}, this)
content.append(this.itemCreateTemplate({