[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 19/27: Last version of prototype + patch
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 19/27: Last version of prototype + patch |
Date: |
Sun, 02 Nov 2014 11:08:50 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 1ca03a2b87d629566afb1e5abd8b3f0e33eacc91
Author: Dany De Bontridder <address@hidden>
Date: Sun Nov 2 11:52:28 2014 +0100
Last version of prototype + patch
---
html/js/prototype.js | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/html/js/prototype.js b/html/js/prototype.js
index 5c7ed2b..f7965e1 100644
--- a/html/js/prototype.js
+++ b/html/js/prototype.js
@@ -4284,8 +4284,27 @@ Ajax.PeriodicalUpdater = Class.create(Ajax.Base, {
if (options.setLeft)
styles.left = (p[0] - delta[0] + options.offsetLeft) + 'px';
- if (options.setTop)
- styles.top = (p[1] - delta[1] + options.offsetTop) + 'px';
+ if (options.setTop) {
+ /****
+ * DDB Scroll
+ */
+ var x = 0, y = 0;
+ if( typeof( window.pageYOffset ) == 'number' ) {
+ // Netscape
+ x = window.pageXOffset;
+ y = window.pageYOffset;
+ } else if( document.body && ( document.body.scrollLeft ||
document.body.scrollTop ) ) {
+ // DOM
+ x = document.body.scrollLeft;
+ y = document.body.scrollTop;
+ } else if( document.documentElement && (
document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
+ // IE6 standards compliant mode
+ x = document.documentElement.scrollLeft;
+ y = document.documentElement.scrollTop;
+ }
+ /**** DDB ***/
+ styles.top = (p[1] - delta[1] + options.offsetTop) + y + 'px';
+ }
if (options.setWidth)
styles.width = layout.get('border-box-width') + 'px';
- [Noalyss-commit] [noalyss] 08/27: Code format, (continued)
- [Noalyss-commit] [noalyss] 08/27: Code format, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 09/27: A div can not have a name, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 07/27: Improve waiting box Add effect to display result, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 06/27: Remove obsolete, Improve waiting box, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 11/27: Button_image Add button with icon, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 13/27: Cosmetique icon, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 12/27: resize icon, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 14/27: Cosmetique remove border, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 10/27: Correct mes Task #1038 - Recherche de fiche par poste comptable, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 17/27: Traduction, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 19/27: Last version of prototype + patch,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 23/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 18/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 22/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 24/27: Code rewriting, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 16/27: Search by accounting Task #1038 - Recherche de fiche par poste comptable, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 25/27: Code rewriting : accept table with a text PK, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 26/27: Code rewriting : change due to change of menu_ref_sql, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 15/27: Button_image for search card, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 21/27: New functionnal test, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 27/27: Test unitaire avec PHPUNIT, Dany De Bontridder, 2014/11/02