Player doesn't work with Javascript added in the footer

Scott Reynolds - November 5, 2009 - 18:25
Project:Kaltura
Version:6.x-1.4
Component:Code
Category:bug report
Priority:critical
Assigned:Scott Reynolds
Status:needs review
Description

For performance, themes can put all the Javascript files in the footer. this causes hardcoded script tags stuff to break. So this envasive patch removes all the cruft for the player for JS, adds a new file for drupal_kaltura helper that implements with behaviors.

similar to this: #623416: Don't use jQuery(document.ready())

Don't put script tags in your html, its will break a bunch of configurations.

#1

Scott Reynolds - November 5, 2009 - 22:19

forgot to add the patch..

AttachmentSize
kaltura-player.patch 9.56 KB

#2

Scott Reynolds - November 5, 2009 - 22:21

followup

AttachmentSize
kaltura_624544.patch 1.59 KB

#3

Scott Reynolds - November 6, 2009 - 21:01

+  $('div.kaltura-player:not(.kaltura-player-processed').each (function (i) {
is missing a closing ) on the 'not'.

 
 

Drupal is a registered trademark of Dries Buytaert.