make sneaky passive by default. this fixes the bug where a user would like something when the interaction pane is active and the sneaky would show up when the feedback view was re-rendered.
This commit is contained in:
parent
73f224e690
commit
2ee329d786
4 changed files with 14 additions and 6 deletions
|
|
@ -35,7 +35,7 @@ app.pages.PostViewer = app.views.Base.extend({
|
|||
},
|
||||
|
||||
prepIdleHooks : function () {
|
||||
$.idleTimer(2000);
|
||||
$.idleTimer(3000);
|
||||
|
||||
$(document).bind("idle.idleTimer", function(){
|
||||
$("body").addClass('idle');
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
</a>
|
||||
|
||||
<!-- this acts as a dock underlay -->
|
||||
<div id="post-info-sneaky">
|
||||
<div id="post-info-sneaky" class="passive">
|
||||
<a href="#" rel="invoke-interaction-pane">
|
||||
<div id="post-info-container-sneaky">
|
||||
<img src="/images/up-tick-inset.png" class="info-tick"/>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,16 @@ app.views.PostViewerFeedback = app.views.Feedback.extend({
|
|||
|
||||
tooltipSelector : ".label",
|
||||
|
||||
postRenderTemplate : function() {
|
||||
this.sneakyVisiblity()
|
||||
},
|
||||
|
||||
sneakyVisiblity : function() {
|
||||
if(!$("#post-info").is(":visible")) {
|
||||
this.$("#post-info-sneaky").removeClass('passive')
|
||||
}
|
||||
},
|
||||
|
||||
invokePane : function(evt){ this.trigger("invokePane") },
|
||||
hidePane : function(evt){ this.trigger("hidePane") }
|
||||
|
||||
|
|
|
|||
|
|
@ -34,13 +34,11 @@ app.views.PostViewerInteractions = app.views.Base.extend({
|
|||
this.removeTooltips()
|
||||
},
|
||||
|
||||
invokePane : function(evt) {
|
||||
if(evt) { evt.preventDefault() }
|
||||
invokePane : function() {
|
||||
if(!this.$("#post-info").is(":visible")) { this.togglePane() }
|
||||
},
|
||||
|
||||
hidePane : function(evt) {
|
||||
if(evt) { evt.preventDefault() }
|
||||
hidePane : function() {
|
||||
if(this.$("#post-info").is(":visible")) { this.togglePane() }
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue