enable tooltips in the new SPV
This commit is contained in:
parent
e036525e8d
commit
f9cb662ff7
3 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
app.views.SinglePostActions = app.views.Feedback.extend({
|
app.views.SinglePostActions = app.views.Feedback.extend({
|
||||||
templateName: "single-post-viewer/single-post-actions",
|
templateName: "single-post-viewer/single-post-actions",
|
||||||
|
tooltipSelector: "time",
|
||||||
|
|
||||||
events: function() {
|
events: function() {
|
||||||
return _.defaults({
|
return _.defaults({
|
||||||
|
|
@ -7,6 +8,11 @@ app.views.SinglePostActions = app.views.Feedback.extend({
|
||||||
}, app.views.Feedback.prototype.events);
|
}, app.views.Feedback.prototype.events);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
renderPluginWidgets : function() {
|
||||||
|
app.views.Base.prototype.renderPluginWidgets.apply(this);
|
||||||
|
this.$('a').tooltip({placement: 'bottom'});
|
||||||
|
},
|
||||||
|
|
||||||
focusComment: function() {
|
focusComment: function() {
|
||||||
$('.comment_box').focus();
|
$('.comment_box').focus();
|
||||||
$('html,body').animate({scrollTop: $('.comment_box').offset().top - ($('.comment_box').height() + 20)});
|
$('html,body').animate({scrollTop: $('.comment_box').offset().top - ($('.comment_box').height() + 20)});
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
app.views.SinglePostCommentStream = app.views.CommentStream.extend({
|
app.views.SinglePostCommentStream = app.views.CommentStream.extend({
|
||||||
|
tooltipSelector: "time, .controls a",
|
||||||
|
|
||||||
postRenderTemplate: function() {
|
postRenderTemplate: function() {
|
||||||
app.views.CommentStream.prototype.postRenderTemplate.apply(this)
|
app.views.CommentStream.prototype.postRenderTemplate.apply(this)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</span>
|
</span>
|
||||||
<span class="post-time">
|
<span class="post-time">
|
||||||
<time datetime="{{created_at}}" />
|
<time datetime="{{created_at}}" title="{{localTime created_at}}" />
|
||||||
</span>
|
</span>
|
||||||
<div class="buttons pull-right">
|
<div class="buttons pull-right">
|
||||||
<a href="#" rel="auth-required" class="like" title="{{#if userLike}} {{t "viewer.unlike"}} {{else}} {{t "viewer.like"}} {{/if}}">
|
<a href="#" rel="auth-required" class="like" title="{{#if userLike}} {{t "viewer.unlike"}} {{else}} {{t "viewer.like"}} {{/if}}">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue