From 418d8666d4d598de5cfedc1359a33c6439c7b65d Mon Sep 17 00:00:00 2001 From: smadha Date: Fri, 6 May 2016 00:37:22 -0700 Subject: [PATCH] syncing savedIndexes and savedDomain across search and index tabs --- geoparser_app/static/js/app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/geoparser_app/static/js/app.js b/geoparser_app/static/js/app.js index 06b2e6b..dc08873 100644 --- a/geoparser_app/static/js/app.js +++ b/geoparser_app/static/js/app.js @@ -709,6 +709,7 @@ var fillDomain = function() { * Fills indexed url as per domain selected */ var fillURL = function() { + $(".savedDomain").val($(this).val()) var selectedIndexes = listOfDomains[$(".savedDomain").val()]; $(".savedIndexes").html(""); @@ -775,6 +776,10 @@ var searchIndex = function(){ $(function() { fillDomain(); $(".savedDomain").bind("change", fillURL); + $(".savedIndexes").bind("change", function(){ + $(".savedIndexes").val($(this).val()) + }); + viewindexButton = $("#viewIndex") viewindexButton.bind("click", function() { var indexDisp = $(".savedIndexes").val();