[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 07/27: Improve waiting box Add effect to disp
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 07/27: Improve waiting box Add effect to display result |
Date: |
Sun, 02 Nov 2014 11:08:46 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit bcb0f6738315686af40ce9b94ae07cefc392b096
Author: Dany De Bontridder <address@hidden>
Date: Mon Oct 13 00:45:16 2014 +0200
Improve waiting box
Add effect to display result
---
html/js/card.js | 34 ++++++++++++++++++++--------------
1 files changed, 20 insertions(+), 14 deletions(-)
diff --git a/html/js/card.js b/html/js/card.js
index c848f56..a700732 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -94,18 +94,10 @@ function search_card(obj)
if ( $('search_card') ) {
removeDiv('search_card');
}
- var sx=0;
- if ( window.scrollY)
- {
- sx=window.scrollY+40;
- }
- else
- {
- sx=document.body.scrollTop+60;
- }
-
- var div_style="top:"+sx+"px;height:80%";
-
add_div({id:'search_card',cssclass:'inner_box',html:loading(),style:div_style,drag:true});
+
+
+ waiting_box();
+
var action=new Ajax.Request ( 'ajax_card.php',
{
@@ -184,6 +176,7 @@ function result_card_search(req)
{
try
{
+ remove_waiting_box();
var answer=req.responseXML;
var a=answer.getElementsByTagName('ctl');
if ( a.length == 0 )
@@ -197,6 +190,19 @@ function result_card_search(req)
var nodeXml=html[0];
var code_html=getNodeText(nodeXml);
code_html=unescape_xml(code_html);
+
+ var sx=0;
+ if ( window.scrollY)
+ {
+ sx=window.scrollY+40;
+ }
+ else
+ {
+ sx=document.body.scrollTop+60;
+ }
+
+ var div_style="top:"+sx+"px;height:80%";
+
add_div({id:'search_card',cssclass:'inner_box',html:"",style:div_style,drag:true,effect:'blinddown'});
$('search_card').innerHTML=code_html;
}
catch (e)
@@ -441,8 +447,8 @@ function select_card_type(obj)
}
var str_style="top:"+sx+"px;left:25%;height:30%";
-
- var popup={'id':
content,'cssclass':'inner_box','style':str_style,'html':loading(),'drag':true};
+ waiting_box();
+ var popup={'id':
content,'cssclass':'inner_box','style':str_style,'html':"",'drag':true};
add_div(popup);
- [Noalyss-commit] [noalyss] branch master updated (5864835 -> f6a3b1e), Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 01/27: Traduction, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 02/27: dans script, LANGUAGE non obligatoire, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 04/27: code : alignement, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 03/27: Change Direct Form par Acces Direct, Dany De Bontridder, 2014/11/02
- [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 <=
- [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, 2014/11/02
- [Noalyss-commit] [noalyss] 23/27: Documentation, Dany De Bontridder, 2014/11/02
- [Noalyss-commit] [noalyss] 18/27: Documentation, Dany De Bontridder, 2014/11/02