From ee1944eb63282e93e2e8ba33045e657bdb30b2b1 Mon Sep 17 00:00:00 2001 From: tonio155 Date: Sun, 1 Jan 2017 16:20:12 +0000 Subject: [PATCH] form validation --- public/js/controllers/search.js | 7 ++++++- public/templates/login.html | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/public/js/controllers/search.js b/public/js/controllers/search.js index 6874ad8..6eb4f94 100644 --- a/public/js/controllers/search.js +++ b/public/js/controllers/search.js @@ -124,4 +124,9 @@ function SearchController(Flights, $http, $rootScope, $state) { $state.go("results"); }); } -}; \ No newline at end of file +}; + +window.addEventListener('click', function(e) { + const holidaySelected = document.querySelector('themes["${e.target}"]') + console.log(holidaySelected); +}) \ No newline at end of file diff --git a/public/templates/login.html b/public/templates/login.html index fa1bba3..afad681 100644 --- a/public/templates/login.html +++ b/public/templates/login.html @@ -10,10 +10,10 @@

Travelly

or
-
- +
+
- +