Stopped nag for authenticated users

This commit is contained in:
Fergal Moran
2013-03-11 14:39:10 +00:00
parent 586c0772d5
commit 0ca144373a

View File

@@ -101,7 +101,7 @@ com.podnoms.utils = {
checkPlayCount: function(){
if (document.cookie.indexOf('sessionId')){
$.getJSON('/ajax/session_play_count', function (data) {
if ((data.play_count % 5) == 0){
if ((data.play_count != 0) && (data.play_count % 5) == 0){
com.podnoms.utils.showAlertModal(
"Hey There!",
"We've noticed you've been playing a few mixes now.<br />" +