From 44ba1fb7b8c5b7fac860cd7b04762368b848b80b Mon Sep 17 00:00:00 2001 From: Kevin Mach Date: Mon, 25 May 2015 14:31:28 -0700 Subject: [PATCH] took out the annoying alert --- home.html | 2 +- scripts/FeedController.js | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/home.html b/home.html index c6ed3b9..4c8b431 100644 --- a/home.html +++ b/home.html @@ -78,7 +78,7 @@ {{section.short_name}}
-
  • Add Class
  • +
  • Add Class
  • diff --git a/scripts/FeedController.js b/scripts/FeedController.js index 30d6433..5227027 100644 --- a/scripts/FeedController.js +++ b/scripts/FeedController.js @@ -35,13 +35,12 @@ angular.module('flashy.FeedController', ['ui.router']). $scope.noCards = function () { - alert(data.length); - if (data.length == 0) { + /*if (data.length == 0) { return true; } else { return false; - } + }*/ } @@ -98,6 +97,13 @@ angular.module('flashy.FeedController', ['ui.router']). success(function(data) { console.log(data); $scope.cards = data; + + /*if (data.length == 0) { + return true; + } else { + return false; + }*/ + console.log('success in refresh cards...'); }). error(function(err) { -- 1.9.1