summaryrefslogtreecommitdiffstats
path: root/wp-includes/js/scriptaculous/sound.js
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-04 16:44:15 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-04 16:44:15 +0000
commit7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc (patch)
treec6fd23b598f3994eddb18cb1c0f2e8d95ff054fa /wp-includes/js/scriptaculous/sound.js
parentf650f48c048bfbbb2ae702b6425d87e39358d748 (diff)
downloadwordpress-mu-7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc.tar.gz
wordpress-mu-7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc.tar.xz
wordpress-mu-7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc.zip
Merged with WordPress 2.5, unstable, only for testing
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1218 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/js/scriptaculous/sound.js')
-rw-r--r--wp-includes/js/scriptaculous/sound.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/wp-includes/js/scriptaculous/sound.js b/wp-includes/js/scriptaculous/sound.js
index 164c79a..9dd6e9f 100644
--- a/wp-includes/js/scriptaculous/sound.js
+++ b/wp-includes/js/scriptaculous/sound.js
@@ -1,4 +1,4 @@
-// script.aculo.us sound.js v1.7.1_beta3, Fri May 25 17:19:41 +0200 2007
+// script.aculo.us sound.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us)
//
@@ -39,16 +39,11 @@ Sound = {
this.tracks[options.track].id++;
options.id = this.tracks[options.track].id;
- if (Prototype.Browser.IE) {
- var sound = document.createElement('bgsound');
- sound.setAttribute('id','sound_'+options.track+'_'+options.id);
- sound.setAttribute('src',options.url);
- sound.setAttribute('loop','1');
- sound.setAttribute('autostart','true');
- $$('body')[0].appendChild(sound);
- }
- else
- new Insertion.Bottom($$('body')[0], Sound.template.evaluate(options));
+ $$('body')[0].insert(
+ Prototype.Browser.IE ? new Element('bgsound',{
+ id: 'sound_'+options.track+'_'+options.id,
+ src: options.url, loop: 1, autostart: true
+ }) : Sound.template.evaluate(options));
}
};