cms/app-client/app/components/player-component.js
changeset 431 3e0a4a322f9e
parent 345 4b66390442fd
--- a/cms/app-client/app/components/player-component.js	Tue Nov 22 13:53:52 2016 +0100
+++ b/cms/app-client/app/components/player-component.js	Tue Nov 22 14:04:03 2016 +0100
@@ -62,31 +62,6 @@
                 this.send('toggle');
             }
         }));
-
-        setTimeout(Ember.run.bind(this, function() {
-            this.textAutoscroll(Ember.$('#' + this.elementId).find('.title'));
-            this.textAutoscroll(Ember.$('#' + this.elementId).find('.author'));
-        }), 500);
-    },
-
-    textAutoscroll: function(jElement) {
-        var text = jElement.find('span');
-        text.stop(true);
-        text.css('text-indent', '0px');
-        if(text.width() > jElement.width()) {
-            var duration = ( ( text.width() - jElement.width() ) * 8 / 100 ) * 1000;
-            var animate = function() {
-                text.delay(4000)
-                    .animate({
-                        'text-indent': -( text.width() - jElement.width() ) + 'px'
-                    }, duration, 'linear', function() {
-                        text.stop(true);
-                        text.css('text-indent', '0px');
-                        window.setTimeout(function() { animate(); }, 1);
-                    });
-            };
-            animate();
-        }
     },
 
     onUpdate: function() {