From ff2397443a823546dcfd30b2d138b58bc48b8ea2 Mon Sep 17 00:00:00 2001 From: Melody Date: Wed, 27 May 2015 02:38:13 -0700 Subject: [PATCH] Nicer formatting for search --- scripts/CardListController.js | 2 +- templates/cardlist.html | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/scripts/CardListController.js b/scripts/CardListController.js index 2090bd9..c42252d 100644 --- a/scripts/CardListController.js +++ b/scripts/CardListController.js @@ -5,7 +5,7 @@ angular.module('flashy.CardListController', ['ui.router']). $rootScope.currentSection = $rootScope.SectionResource.get({sectionId: sectionId}); $scope.cards = []; - $http.get('/api/sections/' + sectionId + '/flashcards/'). + $http.get('/api/sections/' + sectionId + '/flashcards/?hidden=yes'). success(function(data) { console.log(data); $scope.cards = data; diff --git a/templates/cardlist.html b/templates/cardlist.html index e04e4dd..19f116d 100644 --- a/templates/cardlist.html +++ b/templates/cardlist.html @@ -1,17 +1,15 @@
Show Hidden -
-
+
- +
-
-
+
@@ -33,7 +31,7 @@
-
+
-- 1.9.1