[xiph-commits] r4054 - itext/javascript

silvia at svn.annodex.net silvia at svn.annodex.net
Thu Oct 29 02:03:20 PDT 2009


Author: silvia
Date: 2009-10-29 02:03:20 -0700 (Thu, 29 Oct 2009)
New Revision: 4054

Modified:
   itext/javascript/subtitles_v2.js
Log:
Fixed bug where subtitles would stay on screen if not replaced by other subtitles.


Modified: itext/javascript/subtitles_v2.js
===================================================================
--- itext/javascript/subtitles_v2.js	2009-10-29 09:03:13 UTC (rev 4053)
+++ itext/javascript/subtitles_v2.js	2009-10-29 09:03:20 UTC (rev 4054)
@@ -661,10 +661,10 @@
                 jQuery("#" + this.div_id + " > .itext_" + i).css("left", ((mc_width / 2) - text_half_length - 7) + "px");
               }
             }
+          } else {
+            // remove content
+            jQuery("#" + this.div_id + " > .itext_" + i).css("visibility", "hidden");
           }
-
-        } else {
-          jQuery("#" + this.div_id + " > .itext_" + i).css("visibility", "hidden");
         }
       }
     }



More information about the commits mailing list