Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/boards/anim
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2005-02-17 23:51:38 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2005-02-17 23:51:38 (GMT)
commit808e482a2793cb556f0d5fc6e225ab5a85499f3c (patch)
tree30fd809c7a646852845e5ec89a0dbaa326423a87 /boards/anim
parent8187b3f7fff85a1599f74ae37e798d18557bf2c7 (diff)
updated by Yves
Diffstat (limited to 'boards/anim')
-rw-r--r--boards/anim/animation.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/boards/anim/animation.js b/boards/anim/animation.js
index 407fff5..dcb9ca8 100644
--- a/boards/anim/animation.js
+++ b/boards/anim/animation.js
@@ -84,11 +84,11 @@ function init(){
frame_attributs.push(gc_attr);
frame_attributs[gc_frame.attributes[k].nodeName]= frame_attributs[frame_attributs.length -1];
}
- if (gc_frame.hasChildNodes){
+ //if (gc_frame.hasChildNodes){
// text part of text element
// supposed there is only one node, type 3 (text)
- frame_attributs['text'] = gc_frame.childNodes[0];
- }
+ //frame_attributs['text'] = gc_frame.childNodes[0];
+ //}
frames_info.push(frame_attributs);
frames_info['frame_' + gc_frame.getAttribute('time')] = frames_info[frames_info.length -1];
@@ -118,11 +118,7 @@ function apply_frame(frame_no){
continue;
}
if ( AnimItemlist[i][1]['frame_' + frame_no]['text'] ){
- if (AnimItemlist[i][1]['frame_' + frame_no]['create']){
- // append the right text node
- AnimItemlist[i][0].appendChild(AnimItemlist[i][1]['frame_' + frame_no]['text']);
- }
- else AnimItemlist[i][0].textContent=AnimItemlist[i][1]['frame_' + frame_no]['text'].nodeValue;
+ AnimItemlist[i][0].textContent=AnimItemlist[i][1]['frame_' + frame_no]['text'][1];
}
for (k=0; k< AnimItemlist[i][1]['frame_' + frame_no].length; k++){
attr = AnimItemlist[i][1]['frame_' + frame_no][k][0];