www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 594918d37bf8f03f3e94b63178da92c7192690a2
parent e3b7233e5dcf830309fad746b7b9ef63a9487be9
Author: Bertrand BRUN <bertrand0brun@gmail.com>
Date:   Thu, 28 Apr 2011 13:09:32 +0200

Correction du centrage de la frontpage + ajout d'une boite de dialogue du a la lenteur du reseau

Diffstat:
Mcode/serveur/php/ressources/pticlic.js | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/code/serveur/php/ressources/pticlic.js b/code/serveur/php/ressources/pticlic.js @@ -17,6 +17,7 @@ State.prototype.set = function(key, value) { State.prototype.validate = function () { state = this; if (oldScreen != this.screen) { + UI.show("PtiClic", "Chargement…"); if (window[oldScreen] && window[oldScreen].leave) window[oldScreen].leave(); oldScreen = this.screen; } @@ -65,7 +66,7 @@ var UI = { setPreference: function() {}, getPreference: function() {return "";}, show: function(title, text) {},// { if (typeof console != 'undefined') console.log(title, text);}, - dismiss: function() {},//{if (typeof console != 'undefined') console.log('dismiss');}, + dismiss: function() {},// {if (typeof console != 'undefined') console.log('dismiss');}, exit: function() {} }; @@ -123,9 +124,9 @@ frontpage.jss = function(w, h, iconSize) { var interIconSpace = (freeSpace - nbRows * buttonHeight) / (nbRows + 1); var iconOffset = titleHeight + ((currentRow+1) * interIconSpace) + (currentRow * buttonHeight); if (currentColumn == 0) { - e.northEast({left:ww*0.45,top:iconOffset}); + e.northEast({left:w/2-ww*0.05,top:iconOffset}); } else { - e.northWest({left:ww*0.55,top:iconOffset}); + e.northWest({left:w/2+ww*0.05,top:iconOffset}); } }); };