[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 201/219: Task #0001507: Click sur détail opé
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 201/219: 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 |
Date: |
Mon, 18 Dec 2017 13:23:03 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit e9d8bd74dedea8327f6b59d97fec9dccbb33393f
Author: Dany De Bontridder <address@hidden>
Date: Wed Dec 13 00:33:59 2017 +0100
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
---
html/do.php | 15 ++++++++++++++-
html/js/scripts.js | 13 ++-----------
html/popup.php | 15 ++++++++++++++-
html/recherche.php | 15 ++++++++++++++-
4 files changed, 44 insertions(+), 14 deletions(-)
diff --git a/html/do.php b/html/do.php
index 7f123de..bee66ad 100644
--- a/html/do.php
+++ b/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
diff --git a/html/js/scripts.js b/html/js/scripts.js
index b99e9e8..6c9b2c1 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -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
diff --git a/html/popup.php b/html/popup.php
index 9bfdcc7..29002f4 100644
--- a/html/popup.php
+++ b/html/popup.php
@@ -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);
diff --git a/html/recherche.php b/html/recherche.php
index eb1ae08..1e84dd1 100644
--- a/html/recherche.php
+++ b/html/recherche.php
@@ -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">';
- [Noalyss-commit] [noalyss] 172/219: Merge branch 'master' of ns3:/srv/git/noalyss, (continued)
- [Noalyss-commit] [noalyss] 172/219: Merge branch 'master' of ns3:/srv/git/noalyss, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 143/219: ANC : balance analytique / comptabilité, corrige bug SQL, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 155/219: Task #1493 Encodage VEN , ACH, Ordre des opérations Déplacement du bouton modèle d'opérations, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 130/219: ANC groupe : little bug in PLANANC, allow a group null, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 142/219: ANC : balance croisée double fixe SQL query, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 160/219: INSTALL : check PHP version minimum 5.5, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 219/219: Task #1378 : show only the ledger of a given type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 215/219: ICheckBox : add attribute to allow to select checkbox thanks its attribute with the js select_checkbox_attribute, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 170/219: Traduction, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 216/219: Task #1378 : select ledger thanks their type, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 201/219: 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,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 40/219: Test : utilisation nouvelle police nouveau theme Stock... Correction bug http_input SQL : correction table jnt_letter , col. inutile, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 86/219: Improve appearance, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 150/219: HttpInput: Exception if the type is not known, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 98/219: esthetic change icon, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 141/219: CSS Esthetic : comment span or IText can have the CSSclass label_item, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 117/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN remove dead code, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 35/219: Task #0001415: Lettrage - masquer la mise en évidence. Click a second time of an reconciliation and the highlight disappear, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 153/219: HtmlInput: fix small bug in fct image_click, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 158/219: Fix issue with open_basedir, sometime set in the server config, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 148/219: ANC : esthetic ; remove inline CSS, Dany De Bontridder, 2017/12/18