From 0892b27e326f14bd3f6229b55077ef5f9d5280b4 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sat, 21 May 2011 18:14:36 +0000 Subject: branch/3.1: merged bugfixes from trunk/ up to current --- .../source/scriptaculous-1.8.2/sound.js | 55 ---------------------- 1 file changed, 55 deletions(-) delete mode 100644 framework/Web/Javascripts/source/scriptaculous-1.8.2/sound.js (limited to 'framework/Web/Javascripts/source/scriptaculous-1.8.2/sound.js') diff --git a/framework/Web/Javascripts/source/scriptaculous-1.8.2/sound.js b/framework/Web/Javascripts/source/scriptaculous-1.8.2/sound.js deleted file mode 100644 index e2487cde..00000000 --- a/framework/Web/Javascripts/source/scriptaculous-1.8.2/sound.js +++ /dev/null @@ -1,55 +0,0 @@ -// script.aculo.us sound.js v1.8.2, Tue Nov 18 18:30:58 +0100 2008 - -// Copyright (c) 2005-2008 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) -// -// Based on code created by Jules Gravinese (http://www.webveteran.com/) -// -// script.aculo.us is freely distributable under the terms of an MIT-style license. -// For details, see the script.aculo.us web site: http://script.aculo.us/ - -Sound = { - tracks: {}, - _enabled: true, - template: - new Template(''), - enable: function(){ - Sound._enabled = true; - }, - disable: function(){ - Sound._enabled = false; - }, - play: function(url){ - if(!Sound._enabled) return; - var options = Object.extend({ - track: 'global', url: url, replace: false - }, arguments[1] || {}); - - if(options.replace && this.tracks[options.track]) { - $R(0, this.tracks[options.track].id).each(function(id){ - var sound = $('sound_'+options.track+'_'+id); - sound.Stop && sound.Stop(); - sound.remove(); - }); - this.tracks[options.track] = null; - } - - if(!this.tracks[options.track]) - this.tracks[options.track] = { id: 0 }; - else - this.tracks[options.track].id++; - - options.id = this.tracks[options.track].id; - $$('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)); - } -}; - -if(Prototype.Browser.Gecko && navigator.userAgent.indexOf("Win") > 0){ - if(navigator.plugins && $A(navigator.plugins).detect(function(p){ return p.name.indexOf('QuickTime') != -1 })) - Sound.template = new Template(''); - else - Sound.play = function(){}; -} \ No newline at end of file -- cgit v1.2.3