diff --git a/static/js/app/lib/utils.coffee b/static/js/app/lib/utils.coffee index 928d2b2..6ed84fc 100644 --- a/static/js/app/lib/utils.coffee +++ b/static/js/app/lib/utils.coffee @@ -17,7 +17,7 @@ define ['jquery', 'bootstrap', 'toastr'], ($, bootstrap, toastr) -> if document.cookie.indexOf("sessionId") $.getJSON "/ajax/session_play_count", (data) => console.log "utils: got playcount" - @modal "dlg/PlayCountLoginAlert" if (data.play_count isnt 0) and (data.play_count % 1) is 0 + @modal "dlg/PlayCountLoginAlert" if (data.play_count isnt 0) and (data.play_count % 5) is 0 true showError: (title, message) => diff --git a/static/js/app/lib/utils.js b/static/js/app/lib/utils.js index 5a3759d..a88dbd1 100644 --- a/static/js/app/lib/utils.js +++ b/static/js/app/lib/utils.js @@ -27,7 +27,7 @@ if (document.cookie.indexOf("sessionId")) { $.getJSON("/ajax/session_play_count", function(data) { console.log("utils: got playcount"); - if ((data.play_count !== 0) && (data.play_count % 1) === 0) { + if ((data.play_count !== 0) && (data.play_count % 5) === 0) { return _this.modal("dlg/PlayCountLoginAlert"); } });