The audiofield_jplayer() callback is used in admin/config/media/audiofield (if jplayer has been installed).
This callback takes an $audio_file parameter.
What happens (only for jplayer) is that if $audiofile is empty (don't know how it may not be the case in admin/config/media/audiofield) it will show a simple string "HTML5 media player for jQuery" which is not quite representative of the player.

I expected the player to appear in the case of the modification below :

-  if ( $audio_file == '' ) {
+  if ( false && $audio_file == '' ) {

But sadly <javascript> is stripped during audiofield_admin_settings_form hook (see the attached screenshot).

any hint ?

CommentFileSizeAuthor
screenshot-2011-07-20_23-10-51.jpg31.31 KBdrzraf

Comments

tamerzg’s picture

Status: Active » Postponed

Unfortunately javascript is stripped in D7 admin configuration forms. This wasn't the case with D6 and there we can display sample of the players. I am not sure how to fix this, so I am leaving postponed.

tamerzg’s picture

Issue summary: View changes
Status: Postponed » Fixed

Callbacks are now removed from config form.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.