From 2046bb33ae146323f0b4849d55a76bafd47696f7 Mon Sep 17 00:00:00 2001 From: walkews Date: Wed, 12 Jul 2017 09:31:56 -0500 Subject: [PATCH] fix(api_url) --- src/static/js/enthusiast.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/static/js/enthusiast.js b/src/static/js/enthusiast.js index 6e57e09..a810492 100644 --- a/src/static/js/enthusiast.js +++ b/src/static/js/enthusiast.js @@ -1,10 +1,5 @@ -$('#top').change(function(){update_words()}) -$('#language').change(function(){update_words()}) -$('#country').change(function(){update_words()}) -$('#genre').change(function(){update_words()}) -$('#start_year').change(function(){update_words()}) -$('#end_year').change(function(){update_words()}) + jQuery(document).ready(function(){ jQuery(".chosen").chosen(); @@ -20,7 +15,7 @@ function update_words(){ var start_year = $('#start_year').val() var end_year = $('#end_year').val() - url = 'http://localhost:5000/api/keywords?' + url = 'api/keywords?' if (_top.length>0){url = url + 'top=' + _top + '&'} if (language.length>0){url = url + 'language=' + language + '&'}