Browse Source

[spark] Don't show progress bar when there's no progress in IE

This fixes an issue specific for IE where the progress bar is always visible.
Johan Ahlen 10 years ago
parent
commit
31cd07d

+ 1 - 0
apps/spark/src/spark/static/spark/css/spark.css

@@ -295,6 +295,7 @@ body {
 .snippet-progress-container {
   height: 4px;
   width: 100%;
+  overflow: hidden;
   padding: 3px;
 }
 

+ 2 - 2
apps/spark/src/spark/templates/editor_components.mako

@@ -647,7 +647,7 @@ from django.utils.translation import ugettext as _
 
 <script type="text/html" id="snippet-footer-actions">
   <div class="snippet-progress-container">
-    <div class="progress progress-striped active" data-bind="css: {
+    <div class="progress progress-striped active" style="height: 0" data-bind="css: {
       'progress-warning': progress() > 0 && progress() < 100,
       'progress-success': progress() == 100,
       'progress-danger': progress() == 0 && result.errors().length > 0}" style="background-color: #FFF; width: 100%">
@@ -1351,7 +1351,7 @@ from django.utils.translation import ugettext as _
       if (options.data == 100) {
         window.setTimeout(function () {
           $("#snippet_" + options.snippet.id()).find(".progress").animate({
-            height: "1px"
+            height: "0"
           }, 100, function () {
             options.snippet.progress(0);
             redrawFixedHeaders();