New: add constant MAIN_FORCE_RELOAD_PAGE

This commit is contained in:
Regis Houssin 2011-04-12 07:59:37 +00:00
parent 65a8511a36
commit a55aaae6b8

View File

@ -40,7 +40,7 @@ jQuery(document).ready(function(){
var element_id = "<?php echo $object->id; ?>";
jQuery.get("<?php echo DOL_URL_ROOT; ?>/core/ajaxrow.php?roworder="+roworder+"&table_element_line="+table_element_line+"&fk_element="+fk_element+"&element_id="+element_id);
if (reloadpage == 1) {
location.href = '<?php echo $_SERVER['PHP_SELF'].$_SERVER['QUERY_STRING']; ?>';
location.href = '<?php echo $_SERVER['PHP_SELF'].'&'.$_SERVER['QUERY_STRING']; ?>';
} else {
jQuery("#tablelines .drag").each(
function( intIndex ) {