Task #0001507: Click sur détail opérations apparaît trop haut
Problem comes from window.onload loaded with detail operation. Move into do.php , recherche.php , popup.php from script.js
This commit is contained in:
parent
735af2bfa0
commit
e9d8bd74de
4 changed files with 44 additions and 14 deletions
15
html/do.php
15
html/do.php
|
|
@ -208,7 +208,20 @@ if ($oPeriode->load() == -1)
|
|||
|
||||
$module_selected = -1;
|
||||
|
||||
|
||||
?>
|
||||
<script>
|
||||
/**
|
||||
* All the onload must be here otherwise the other will overwritten
|
||||
* @returns {undefined}
|
||||
*/
|
||||
window.onload=function ()
|
||||
{
|
||||
create_anchor_up();
|
||||
init_scroll();
|
||||
sorttable.init
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
||||
/*
|
||||
* if an action is requested
|
||||
|
|
|
|||
|
|
@ -2832,7 +2832,7 @@ function create_anchor_up()
|
|||
{
|
||||
if ( document.getElementById('up_top')) return;
|
||||
|
||||
var newElt = new Element('div');
|
||||
var newElt = document.createElement('div');
|
||||
newElt.setAttribute('id', 'up_top');
|
||||
newElt.innerHTML='<a id="up_top"></a>';
|
||||
|
||||
|
|
@ -2920,16 +2920,7 @@ function alert_box(p_message)
|
|||
smoke.alert(p_message,false , {ok:'ok',classname:"inner_box"});
|
||||
}
|
||||
|
||||
/**
|
||||
* All the onload must be here otherwise the other will overwritten
|
||||
* @returns {undefined}
|
||||
*/
|
||||
window.onload=function ()
|
||||
{
|
||||
create_anchor_up();
|
||||
init_scroll();
|
||||
sorttable.init
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Colorize the rows of the table
|
||||
* @param string p_table id of the table
|
||||
|
|
|
|||
|
|
@ -42,7 +42,20 @@ if ( ! isset ($_SESSION['g_user'] ) )
|
|||
|
||||
html_page_start($_SESSION['g_theme']);
|
||||
echo '<div style="float:left;">';
|
||||
|
||||
?>
|
||||
<script>
|
||||
/**
|
||||
* All the onload must be here otherwise the other will overwritten
|
||||
* @returns {undefined}
|
||||
*/
|
||||
window.onload=function ()
|
||||
{
|
||||
create_anchor_up();
|
||||
init_scroll();
|
||||
sorttable.init
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
global $g_user;
|
||||
$cn=Dossier::connect();
|
||||
$g_user=new User($cn);
|
||||
|
|
|
|||
|
|
@ -56,7 +56,20 @@ if ( $act=='X')
|
|||
exit();
|
||||
}
|
||||
// display a search box
|
||||
|
||||
?>
|
||||
<script>
|
||||
/**
|
||||
* All the onload must be here otherwise the other will overwritten
|
||||
* @returns {undefined}
|
||||
*/
|
||||
window.onload=function ()
|
||||
{
|
||||
create_anchor_up();
|
||||
init_scroll();
|
||||
sorttable.init
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
$ledger=new Acc_Ledger_Search('ALL');
|
||||
$search_box=$ledger->search_form();
|
||||
echo '<div class="content">';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue