summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorEtienne Massip <etienne.massip@gmail.com>2012-02-13 20:20:18 +0000
committerEtienne Massip <etienne.massip@gmail.com>2012-02-13 20:20:18 +0000
commitc5317a14ac0696cac5d9ae8d3b3ddd2b61aee01c (patch)
tree0f48781d172951072b391bdcb3286dc011788332 /app/views
parentcccfed7006f11e34902c2863053e29317807b453 (diff)
downloadredmine-c5317a14ac0696cac5d9ae8d3b3ddd2b61aee01c.tar.gz
redmine-c5317a14ac0696cac5d9ae8d3b3ddd2b61aee01c.zip
Redraw revision graph on window resize (#10206).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8866 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/repositories/_revision_graph.html.erb15
1 files changed, 10 insertions, 5 deletions
diff --git a/app/views/repositories/_revision_graph.html.erb b/app/views/repositories/_revision_graph.html.erb
index db82bedae..63cb50583 100644
--- a/app/views/repositories/_revision_graph.html.erb
+++ b/app/views/repositories/_revision_graph.html.erb
@@ -2,11 +2,16 @@
<%= javascript_include_tag 'revision_graph.js' %>
<script type="text/javascript" charset="utf-8">
- Event.observe(window, 'load', function(){
- revisionGraph(
- document.getElementById('holder'),
- <%= commits.to_json.html_safe %>,
- <%= space %>);
+
+ ['load', 'resize'].each(function(window_event) {
+
+ Event.observe(window, window_event, function(){
+
+ drawRevisionGraph(
+ document.getElementById('holder'),
+ <%= commits.to_json.html_safe %>,
+ <%= space %>);
+ });
});
</script>