Skip to content

Commit

Permalink
Fix progress bar running on IE
Browse files Browse the repository at this point in the history
  • Loading branch information
Shane Mingins authored and Shane Mingins committed Apr 6, 2009
1 parent f1424b9 commit 1c2c3f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions lib/views/translations/translations.html.erb
Expand Up @@ -4,12 +4,6 @@
<%= submit_tag 'Go' %>
<% end -%>

<script type="text/javascript">
Event.observe(window, 'load', function() {
myJsProgressBarHandler = new JS_BRAMUS.jsProgressBar($('translate_progress'), 0);
}, false);
</script>

<p>
Textual Translation progress: <span class="progressBar" id="translate_progress"><%= @locale.percentage_translated %></span>
</p>
Expand Down
2 changes: 1 addition & 1 deletion lib/views/translations/update.rjs
@@ -1,6 +1,6 @@
# update the percentage and remove the translated record if translated for first time otherwise highlight change
if @first_time_translating
page.call 'myJsProgressBarHandler.setPercentage', @locale.percentage_translated, true
page.call 'myJsProgressBarHandler.setPercentage', 'translate_progress', @locale.percentage_translated
page.remove("translation_#{@translation.class}_#{@translation.id}")
else
page.visual_effect :highlight, "translation_#{@translation.class}_#{@translation.id}"
Expand Down

0 comments on commit 1c2c3f5

Please sign in to comment.