Permalink
Browse files

FLUID-4947: fixed 2 audio outputs (in uienhancer).

  • Loading branch information...
1 parent 408591c commit 53117e9b48f952dcb1ba6db9ccf55867fe518f63 @yzen yzen committed Apr 2, 2013
View
4 src/webapp/integration-demos/uiOptions/js/SelfVoicingEnactor.js
@@ -94,9 +94,9 @@ var fluid_1_5 = fluid_1_5 || {};
fluid.uiOptions.actionAnts.selfVoicingEnactor.attachAudio = function (that) {
that.audio = $(that.options.markup);
- that.audio.attr("id", that.options.audioSelector);
+ that.audio.attr("id", that.options.audioSelector.substr(1));
that.audio.hide();
- $("body").remove(that.options.audioSelector);
+ $(that.options.audioSelector).remove();
$("body").append(that.audio);
var audioElement = that.audio[0];
audioElement.addEventListener("canplaythrough", function () {
View
10 src/webapp/integration-demos/uiOptions/js/uiOptionsDemo.js
@@ -70,4 +70,14 @@
});
};
+ fluid.demands("iframeEnhancer", null, {
+ options: {
+ components: {
+ selfVoicingEnactor: {
+ type: "fluid.emptySubcomponent"
+ }
+ }
+ }
+ });
+
})(jQuery, fluid);

0 comments on commit 53117e9

Please sign in to comment.