Skip to content

Commit 21fa574

Browse files
committed
Solved runQuery post problem
1 parent 92e77f7 commit 21fa574

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

plugin/frontend/nfquery/js/subscription.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,18 @@ function getFilters(){
8585
if (isNull){
8686
alert("Select a Query First !");
8787
}else{
88-
$.post('/nfsen/plugins/nfquery/ajaxhandler.php', {runQueries:queryMap, source:source}, function(data){});
89-
88+
//$.post('/nfsen/plugins/nfquery/ajaxhandler.php', {runQueries:queryMap, source:source}, function(data){});
89+
//Sync post solves the problem
90+
$.ajax({
91+
type: "POST",
92+
url: "/nfsen/plugins/nfquery/ajaxhandler.php",
93+
data: {runQueries:queryMap, source:source},
94+
async: false
95+
}).done(function() {
96+
}
97+
);
9098
$('#nfqueryTab').val('Running');
91-
$('#navigationForm').submit();
99+
$('#navigationForm').submit();
92100
}
93101

94102
}

0 commit comments

Comments
 (0)