Commit e52f50c22fa0ca855ad75208b511bf27967e92ab

Authored by Jacob Vosmaer
1 parent c7dc20c1

Do not refresh notes on hidden tabs

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/assets/javascripts/notes.js.coffee
@@ -72,7 +72,7 @@ class Notes @@ -72,7 +72,7 @@ class Notes
72 , 15000 72 , 15000
73 73
74 refresh: -> 74 refresh: ->
75 - @getContent() 75 + @getContent() unless document.hidden
76 76
77 getContent: -> 77 getContent: ->
78 $.ajax 78 $.ajax