From 7da8c92db9f9a5e2e99ffeda6eb02782e2936486 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Mon, 1 Jul 2013 10:43:56 +0100 Subject: [PATCH] Altered type in utils --- static/js/app/lib/utils.coffee | 2 +- static/js/app/lib/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/app/lib/utils.coffee b/static/js/app/lib/utils.coffee index 57f0b59..2ff65f7 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" - if data.play_count != 0 and ((data.play_count % com.podnoms.settings.nag_count) == 0) + if data.play_count isnt "0" and ((data.play_count % com.podnoms.settings.nag_count) == 0) @modal "/dlg/PlayCountLoginAlert" true diff --git a/static/js/app/lib/utils.js b/static/js/app/lib/utils.js index 804f203..7dbf1c1 100644 --- a/static/js/app/lib/utils.js +++ b/static/js/app/lib/utils.js @@ -28,7 +28,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 % com.podnoms.settings.nag_count) === 0)) { + if (data.play_count !== "0" && ((data.play_count % com.podnoms.settings.nag_count) === 0)) { return _this.modal("/dlg/PlayCountLoginAlert"); } });