Skip to content

Commit

Permalink
syncing savedIndexes and savedDomain across search and index tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
smadha committed May 6, 2016
1 parent 1908545 commit 418d866
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions geoparser_app/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 418d866

Please sign in to comment.