From 71cadef1bf8817181b0a090b1a4991c8da52a391 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 28 May 2013 11:46:11 -0700 Subject: [PATCH] Add title attribute to categorize bubble '>' multi links. --- r2/r2/lib/strings.py | 1 + r2/r2/public/static/js/multi.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/r2/r2/lib/strings.py b/r2/r2/lib/strings.py index 9e3af2f9e..70f52d4c1 100644 --- a/r2/r2/lib/strings.py +++ b/r2/r2/lib/strings.py @@ -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): diff --git a/r2/r2/public/static/js/multi.js b/r2/r2/public/static/js/multi.js index 116453652..fdf78cf19 100644 --- a/r2/r2/public/static/js/multi.js +++ b/r2/r2/public/static/js/multi.js @@ -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('
<%- title %>/r/<%- sr_name %>
'), - itemTemplate: _.template(''), + itemTemplate: _.template(''), itemCreateTemplate: _.template(''), 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({