Remove old dialog box && update path to controllers in ajax call

update path to controllers
This commit is contained in:
Nicolas Le Goff
2012-10-09 19:45:51 +02:00
parent a61779ee5a
commit e8258acf15
6 changed files with 75 additions and 126 deletions

View File

@@ -256,14 +256,12 @@ function getAnswerTrain(pos, tools, query,options_serial)
$('#PREVIEWCURRENTCONT').fadeOut('fast');
$.ajax({
type: "POST",
url: "/prod/prodFeedBack.php",
url: "/prod/query/answer-train/",
dataType: 'json',
data: {
action: "ANSWERTRAIN",
pos:pos,
options_serial:options_serial,
query:query
options_serial:options_serial,
query:query
},
success: function(data){
setCurrent(data.current);
@@ -279,10 +277,9 @@ function getRegTrain(contId,pos,tools)
{
$.ajax({
type: "POST",
url: "./prodFeedBack.php",
url: "/prod/query/reg-train/",
dataType: 'json',
data: {
action: "REGTRAIN",
cont:contId,
pos:pos
},