Skip to content

Commit

Permalink
Fixing a blunder in the blinker message
Browse files Browse the repository at this point in the history
  • Loading branch information
Bragaadeesh committed May 6, 2012
1 parent 7890316 commit 2c3aa2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/application.js
Expand Up @@ -26,9 +26,9 @@
var inactive;

window.onfocus = function () {
isActive = false;
inactive = false;
};

window.onblur = function () {
isActive = true;
inactive = true;
};
2 changes: 1 addition & 1 deletion app/assets/javascripts/routers/entries.js.coffee
Expand Up @@ -23,5 +23,5 @@ class Btob.Routers.Entries extends Backbone.Router
repopuplate: ->
if @new_collection.length > 0
@collection.add(@new_collection.models)
if (!window.inactive)
if window.inactive
$.titleAlert("You have a new message", {requireBlur:false, stopOnFocus:true, duration:0, interval:1500 });

0 comments on commit 2c3aa2c

Please sign in to comment.