]> git.parisson.com Git - telemeta.git/commitdiff
eztelemeta: minor css and js fixes
authorolivier <>
Wed, 15 Apr 2009 18:45:45 +0000 (18:45 +0000)
committerolivier <>
Wed, 15 Apr 2009 18:45:45 +0000 (18:45 +0000)
tools/eztelemeta/design/standard/javascript/eztelemeta-player.js
tools/eztelemeta/design/standard/stylesheets/eztelemeta.css

index 5064491ff2b1e8f0a503f3b97c608ba351713d3b..44328aca55f989bd829c26871b57557edfad7b88 100644 (file)
@@ -7,9 +7,12 @@ function TelemetaPlayer(cfg)
    
     this.init = function() {
         var sounds = this.byClass(document, 'dd', 'telemeta-sound');
+        var i;
         for (i in sounds) {
-            link = sounds[i].getElementsByTagName('a')[0];
-            link.onclick = this.togglePlayback;
+            if (typeof(sounds[i].getElementsByTagName) != 'undefined') {
+                link = sounds[i].getElementsByTagName('a')[0];
+                link.onclick = this.togglePlayback;
+            }
         }
     }
 
index cdc483078abbe6095bfad6643618b920008d9004..38a08644c6a7e124e8b2aefb363731dccaa06455 100644 (file)
 
 .telemeta-item .telemeta-sound a {
     display: block;
-    background: url('../images/play.gif') no-repeat left;
+    background: url('../images/play.gif') no-repeat left top;
     padding-left: 29px;
     height: 22px;
-    padding-top: 0.8ex;
+    padding-top: 0.5ex;
 }
 
 .telemeta-item .telemeta-position, .telemeta-item .telemeta-separator { display: none; }
@@ -46,6 +46,7 @@
     font-weight: bold;
     color: #000066;
     outline: none;
+    padding-bottom: 0.6ex;
 }
 
 .telemeta-item dd.telemeta-duration {