Qual: move ajax response in /core/ajax directory
This commit is contained in:
parent
459289ca05
commit
5fe088334c
@ -26,6 +26,7 @@ jQuery 1.6.4 GPL and MIT Licence Yes JS library
|
||||
jQuery UI 1.8.16 GPL and MIT Licence Yes JS library plugin UI
|
||||
jQuery Flot 0.7 MIT Licence Yes JS library to build graph
|
||||
jQuery JCrop 0.9.8 MIT Licence Yes JS library plugin Crop (to crop images)
|
||||
jQuery jeditable 1.7.1 MIT Licence Yes JS library plugin jeditable (to edit in place)
|
||||
jQuery Layout 1.3.0 GPL and MIT Licence Yes JS library plugin Layout (RC-29.15)
|
||||
jQuery TableDnD 0.5 GPL and MIT Licence Yes JS library plugin TableDnD (to reorder table rows)
|
||||
jQuery jNotify 1.1.00 Apache Software License 2.0 ? JS library plugin jNotify (to use ajax popups)
|
||||
|
||||
@ -135,7 +135,7 @@ function printBoxesArea($user,$areacode)
|
||||
print 'var boxorder = \'A:\' + left_list + \'-B:\' + right_list;'."\n";
|
||||
//print 'alert(\'boxorder=\' + boxorder);';
|
||||
print 'var userid = \''.$user->id.'\';'."\n";
|
||||
print 'jQuery.get(\'core/ajaxbox.php?boxorder=\'+boxorder+\'&userid=\'+'.$user->id.');'."\n";
|
||||
print 'jQuery.get(\'core/ajax/box.php?boxorder=\'+boxorder+\'&userid=\'+'.$user->id.');'."\n";
|
||||
print '}'."\n";
|
||||
print '</script>'."\n";
|
||||
}
|
||||
|
||||
@ -223,7 +223,7 @@ if ($action == 'valid')
|
||||
|
||||
if ($action == 'set_thirdparty')
|
||||
{
|
||||
$object->updateObjectField('facture',$id,'fk_soc',$socid);
|
||||
$object->setValueFrom('facture',$id,'fk_soc',$socid);
|
||||
|
||||
Header('Location: '.$_SERVER["PHP_SELF"].'?facid='.$id);
|
||||
exit;
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajaxbox.php
|
||||
* \file htdocs/core/ajax/box.php
|
||||
* \brief File to return Ajax response on Box move
|
||||
*/
|
||||
|
||||
@ -28,7 +28,7 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
require('../../main.inc.php');
|
||||
require_once(DOL_DOCUMENT_ROOT."/boxes.php");
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajaxconstantonoff.php
|
||||
* \file htdocs/core/ajax/constantonoff.php
|
||||
* \brief File to set or del an on/off constant
|
||||
*/
|
||||
|
||||
@ -27,7 +27,7 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
require('../../main.inc.php');
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/admin.lib.php");
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajaxfileupload.php
|
||||
* \file htdocs/core/ajax/fileupload.php
|
||||
* \brief File to return Ajax response on file upload
|
||||
*/
|
||||
|
||||
@ -33,8 +33,7 @@ if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1'); // If we don't nee
|
||||
//if (! defined("NOLOGIN")) define("NOLOGIN",'1'); // If this page is public (can be called outside logged session)
|
||||
|
||||
|
||||
require("../main.inc.php");
|
||||
|
||||
require("../../main.inc.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/files.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/lib/images.lib.php");
|
||||
|
||||
1
htdocs/core/ajax/index.php
Normal file
1
htdocs/core/ajax/index.php
Normal file
@ -0,0 +1 @@
|
||||
Url not available
|
||||
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajaxrow.php
|
||||
* \file htdocs/core/ajax/row.php
|
||||
* \brief File to return Ajax response on Row move
|
||||
*/
|
||||
|
||||
@ -27,7 +27,7 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
require('../../main.inc.php');
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/class/genericobject.class.php");
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajaxsecurity.php
|
||||
* \file htdocs/core/ajax/security.php
|
||||
* \brief File for return security data
|
||||
*/
|
||||
|
||||
@ -27,7 +27,7 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
require('../../main.inc.php');
|
||||
|
||||
/*
|
||||
* View
|
||||
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajaxziptown.php
|
||||
* \file htdocs/core/ajax/ziptown.php
|
||||
* \ingroup core
|
||||
* \brief File to return Ajax response on zipcode or town request
|
||||
*/
|
||||
@ -29,7 +29,7 @@ if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1');
|
||||
if (! defined('NOCSRFCHECK')) define('NOCSRFCHECK','1');
|
||||
|
||||
require('../main.inc.php');
|
||||
require('../../main.inc.php');
|
||||
require_once(DOL_DOCUMENT_ROOT."/core/class/html.formcompany.class.php");
|
||||
|
||||
|
||||
@ -628,7 +628,7 @@ class FormCompany
|
||||
$size='';
|
||||
if (!empty($fieldsize)) $size='size="'.$fieldsize.'"';
|
||||
|
||||
if ($conf->use_javascript_ajax && empty($disableautocomplete)) $out.= ajax_multiautocompleter($htmlname,$fields,DOL_URL_ROOT.'/core/ajaxziptown.php')."\n";
|
||||
if ($conf->use_javascript_ajax && empty($disableautocomplete)) $out.= ajax_multiautocompleter($htmlname,$fields,DOL_URL_ROOT.'/core/ajax/ziptown.php')."\n";
|
||||
$out.= '<input id="'.$htmlname.'" type="text" name="'.$htmlname.'" '.$size.' value="'.$selected.'">'."\n";
|
||||
|
||||
return $out;
|
||||
|
||||
@ -810,7 +810,7 @@ class FormFile
|
||||
</script>';
|
||||
|
||||
print '<div id="fileupload">';
|
||||
print '<form action="'.DOL_URL_ROOT.'/core/ajaxfileupload.php" method="POST" enctype="multipart/form-data">';
|
||||
print '<form action="'.DOL_URL_ROOT.'/core/ajax/fileupload.php" method="POST" enctype="multipart/form-data">';
|
||||
print '<input type="hidden" name="fk_element" value="'.$object->id.'">';
|
||||
print '<input type="hidden" name="element" value="'.$object->element.'">';
|
||||
print '<div class="fileupload-buttonbar">';
|
||||
|
||||
@ -234,7 +234,7 @@ function ajax_constantonoff($code,$input=array())
|
||||
|
||||
// Set constant
|
||||
$( "#set_'.$code.'" ).click(function() {
|
||||
$.get( "'.DOL_URL_ROOT.'/core/ajaxconstantonoff.php", {
|
||||
$.get( "'.DOL_URL_ROOT.'/core/ajax/constantonoff.php", {
|
||||
action: \'set\',
|
||||
name: \''.$code.'\'
|
||||
},
|
||||
@ -256,7 +256,7 @@ function ajax_constantonoff($code,$input=array())
|
||||
|
||||
// Del constant
|
||||
$( "#del_'.$code.'" ).click(function() {
|
||||
$.get( "'.DOL_URL_ROOT.'/core/ajaxconstantonoff.php", {
|
||||
$.get( "'.DOL_URL_ROOT.'/core/ajax/constantonoff.php", {
|
||||
action: \'del\',
|
||||
name: \''.$code.'\'
|
||||
},
|
||||
|
||||
@ -36,7 +36,7 @@ jQuery(document).ready(function(){
|
||||
var table_element_line = "<?php echo $object->table_element_line; ?>";
|
||||
var fk_element = "<?php echo $object->fk_element; ?>";
|
||||
var element_id = "<?php echo $object->id; ?>";
|
||||
jQuery.get("<?php echo DOL_URL_ROOT; ?>/core/ajaxrow.php",
|
||||
jQuery.get("<?php echo DOL_URL_ROOT; ?>/core/ajax/row.php",
|
||||
{
|
||||
roworder: roworder,
|
||||
table_element_line: table_element_line,
|
||||
|
||||
@ -123,10 +123,10 @@ class InterfacePaypalWorkflow
|
||||
if ($ret < 0) return -1;
|
||||
|
||||
// Add payer id
|
||||
$soc->updateObjectField('societe', $obj->socid, 'ref_int', $object->payerID);
|
||||
$soc->setValueFrom('societe', $obj->socid, 'ref_int', $object->payerID);
|
||||
|
||||
// Add transaction id
|
||||
$obj->updateObjectField($obj->table_element,$obj->id,'ref_int',$object->resArray["TRANSACTIONID"]);
|
||||
$obj->setValueFrom($obj->table_element,$obj->id,'ref_int',$object->resArray["TRANSACTIONID"]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -112,7 +112,7 @@ if ($conf->use_javascript_ajax)
|
||||
});
|
||||
|
||||
$("#generate_token").click(function() {
|
||||
$.get( "'.DOL_URL_ROOT.'/core/ajaxsecurity.php", {
|
||||
$.get( "'.DOL_URL_ROOT.'/core/ajax/security.php", {
|
||||
action: \'getrandompassword\',
|
||||
generic: true
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user