[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Naparuba
naparuba at gmail.com
Tue Feb 28 22:08:46 UTC 2012
The following commit has been merged in the debian/master branch:
commit 2fc3f0b207d6ad4fcff83d742b92e78fffa7266d
Author: Naparuba <naparuba at gmail.com>
Date: Thu Dec 15 13:11:26 2011 +0100
Add : tween effect for mobile/impact page.
diff --git a/shinken/webui/plugins/mobile/htdocs/js/mobile_impacts.js b/shinken/webui/plugins/mobile/htdocs/js/mobile_impacts.js
index 172c2b5..1837763 100644
--- a/shinken/webui/plugins/mobile/htdocs/js/mobile_impacts.js
+++ b/shinken/webui/plugins/mobile/htdocs/js/mobile_impacts.js
@@ -39,16 +39,21 @@ function focus_on(idx){
// And make others nearly disapears
for(var j=0;j<nb_impacts;j++){
var impact = $('impact-'+j);
+ old_pos = impact.style.left.substring(0, impact.style.left.length-2);
+ new_pos = 0;
if(j == idx){
impact.style.opacity = '1';
- impact.style.left = ''+offset+'px';
+ new_pos = offset;
}else if(j == idx-1 || j == idx+1){
impact.style.opacity = '0.7';
- impact.style.left = ''+((j-idx)*250+offset)+'px';
+ new_pos = ((j-idx)*250+offset);
}else{
impact.style.opacity = '0.1';
- impact.style.left = ''+((j-idx)*250+offset)+'px';
+ new_pos = ((j-idx)*250+offset);
}
+ var move = new Fx.Tween(impact, {property: 'left', duration : 200});
+ move.start(old_pos, new_pos); // and by moving now
+
}
}
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list