Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set MediaTab to be able to accept arbitary url for content

  • Loading branch information...
commit f7b76b1fdcfe7fbabfdb4533bf87b485cebee1dc 1 parent 2361d0a
@lordnull lordnull authored
View
2  contrib/dojo/agentUI/MediaTab.js
@@ -16,7 +16,7 @@ dojo.declare("agentUI.MediaTab", [dijit._Widget, dijit._Templated], {
this._agentSub = dojo.subscribe("OpenACD/AgentChannel", this, this._handleAgentChannelPublish);
this._agentCommandSubs = {};
- var subChan = 'OpenACD/AgentChannel/' + this.channel + '/' + args.stateData.source_module + '/mediaload';
+ var subChan = 'OpenACD/AgentChannel/' + this.channel + '/mediaload';
console.log('media load chan', subChan);
this._agentCommandSubs.mediaload = dojo.subscribe(subChan, this, function(args){
View
8 priv/www/agent/application/MediaTab.js
@@ -16,12 +16,16 @@ dojo.declare("agentUI.MediaTab", [dijit._Widget, dijit._Templated], {
this._agentSub = dojo.subscribe("OpenACD/AgentChannel", this, this._handleAgentChannelPublish);
this._agentCommandSubs = {};
- var subChan = 'OpenACD/AgentChannel/' + this.channel + '/' + args.stateData.source_module + '/mediaload';
+ var subChan = 'OpenACD/AgentChannel/' + this.channel + '/mediaload';
console.log('media load chan', subChan);
this._agentCommandSubs.mediaload = dojo.subscribe(subChan, this, function(args){
console.log("loading media", args);
- this.mediaPane.attr('href', "tabs/" + this.stateData.source_module + ".html");
+ loadMediaPath = "tabs/" + this.stateData.source_module + ".html");
+ if(args.href){
+ loadMediaPath = args.href;
+ }
+ this.mediaPane.attr('href', loadMediaPath);
});
/*switch(args.state){
case 'ringing':
View
2  priv/www/contrib/agentUI/MediaTab.js
@@ -19,7 +19,7 @@ dojo.declare("agentUI.MediaTab", [dijit._Widget, dijit._Templated], {
this._agentSub = dojo.subscribe("OpenACD/AgentChannel", this, this._handleAgentChannelPublish);
this._agentCommandSubs = {};
- var subChan = 'OpenACD/AgentChannel/' + this.channel + '/' + args.stateData.source_module + '/mediaload';
+ var subChan = 'OpenACD/AgentChannel/' + this.channel + '/mediaload';
console.log('media load chan', subChan);
this._agentCommandSubs.mediaload = dojo.subscribe(subChan, this, function(args){
View
2  priv/www/contrib/agentUI/base.js.uncompressed.js
@@ -16307,7 +16307,7 @@ dojo.declare("agentUI.MediaTab", [dijit._Widget, dijit._Templated], {
this._agentSub = dojo.subscribe("OpenACD/AgentChannel", this, this._handleAgentChannelPublish);
this._agentCommandSubs = {};
- var subChan = 'OpenACD/AgentChannel/' + this.channel + '/' + args.stateData.source_module + '/mediaload';
+ var subChan = 'OpenACD/AgentChannel/' + this.channel + '/mediaload';
console.log('media load chan', subChan);
this._agentCommandSubs.mediaload = dojo.subscribe(subChan, this, function(args){
Please sign in to comment.
Something went wrong with that request. Please try again.