# HG changeset patch # User hamidouk # Date 1328796605 -3600 # Node ID f051a2432970e5bbda2fcff5625d4c22d9b56368 # Parent 7f0a19cf1d3d7b953483c4483f6710f8d3fdfd15 new version, new css. diff -r 7f0a19cf1d3d -r f051a2432970 src/ldt/ldt/static/ldt/css/LdtPlayer.css --- a/src/ldt/ldt/static/ldt/css/LdtPlayer.css Thu Feb 09 12:09:37 2012 +0100 +++ b/src/ldt/ldt/static/ldt/css/LdtPlayer.css Thu Feb 09 15:10:05 2012 +0100 @@ -110,13 +110,8 @@ font-size:12px; } -.Ldt-SaKeyword{ - background-color:#b9b9b9; - color:#4D4D4D; - padding:5px; - font-weight:bold; - text-align:left; - float:left; +.Ldt-SaKeywords { + font-weight:bold; font-size:10px; } diff -r 7f0a19cf1d3d -r f051a2432970 src/ldt/ldt/static/ldt/js/LdtPlayer-release.js --- a/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Thu Feb 09 12:09:37 2012 +0100 +++ b/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Thu Feb 09 15:10:05 2012 +0100 @@ -2190,7 +2190,6 @@ if (_this.player) { return _this.player.playVideo(); } else { - console.log("Play on undefined player"); return false; } }, @@ -2198,7 +2197,6 @@ if (_this.player) { return _this.player.pauseVideo(); } else { - console.log("Pause on undefined player"); return false; } }, @@ -2206,7 +2204,6 @@ if (_this.player) { return _this.player.getCurrentTime(); } else { - console.log("getPosition on undefined player"); return 0; } }, @@ -2214,7 +2211,6 @@ if (_this.player) { return _this.player.seekTo(pos); } else { - console.log("seek on undefined player"); return false; } }, @@ -2222,7 +2218,6 @@ if (_this.player) { return _this.player.isMuted(); } else { - console.log("getMute on undefined player"); return false; } }, @@ -2230,7 +2225,6 @@ if (_this.player) { return p ? _this.player.mute() : _this.player.unMute(); } else { - console.log("setMute on undefined player"); return false; } } @@ -2968,17 +2962,17 @@ } _this.selector.find(".Ldt-createAnnotation-Description").val(newVal); - // we use a custom event because there's no simple way to test for a js - // change in a textfield. - _this.selector.find(".Ldt-createAnnotation-Description").trigger("js_mod"); + // also call our update function. _this.handleTextChanges(); } }(polemic)); } + // js_mod is a custom event because there's no simple way to test for a js + // change in a textfield. this.selector.find(".Ldt-createAnnotation-Description") - .bind("propertychange keyup input paste", IriSP.wrap(this, this.handleTextChanges)); + .bind("propertychange keyup input paste js_mod", IriSP.wrap(this, this.handleTextChanges)); /* the cinecast version of the player is supposed to pause when the user clicks on the button */ if (this.cinecast_version) {