mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 10:08:45 +02:00
Make sure that the AJax calls use a full/absolute path to the page they call so that they can be embedded anywhere inside the application (i.e. in plug-ins supplied pages as well as 'regular' app pages).
SVN:trunk[1364]
This commit is contained in:
@@ -927,7 +927,7 @@ EOF
|
||||
ajax_request = null;
|
||||
}
|
||||
|
||||
ajax_request = $.post('ajax.csvimport.php',
|
||||
ajax_request = $.post(GetAbsoluteUrlAppRoot()+'pages/ajax.csvimport.php',
|
||||
{ operation: 'display_mapping_form', enctype: 'multipart/form-data', csvdata: csv_data, separator: separator,
|
||||
qualifier: text_qualifier, nb_lines_skipped: nb_lines_skipped, header_line: header_line, class_name: class_name,
|
||||
advanced: advanced, encoding: encoding },
|
||||
@@ -1225,7 +1225,7 @@ EOF
|
||||
ajax_request = null;
|
||||
}
|
||||
|
||||
ajax_request = $.post('ajax.csvimport.php',
|
||||
ajax_request = $.post(GetAbsoluteUrlAppRoot()+'pages/ajax.csvimport.php',
|
||||
{ operation: 'parser_preview', enctype: 'multipart/form-data', csvdata: $("#csvdata_truncated").val(), separator: separator, qualifier: text_qualifier, nb_lines_skipped: nb_lines_skipped, header_line: header_line, encoding: encoding },
|
||||
function(data) {
|
||||
$('#preview').empty();
|
||||
@@ -1385,7 +1385,7 @@ if (ajax_request != null)
|
||||
ajax_request = null;
|
||||
}
|
||||
|
||||
ajax_request = $.post('ajax.csvimport.php',
|
||||
ajax_request = $.post(GetAbsoluteUrlAppRoot()+'pages/ajax.csvimport.php',
|
||||
{ operation: 'get_csv_template', class_name: sClassName },
|
||||
function(data) {
|
||||
$('#template').empty();
|
||||
|
||||
Reference in New Issue
Block a user