Skip to content

Commit

Permalink
#50: ajout du protocole
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericbonifas committed Aug 11, 2015
1 parent eb9d775 commit c04ecaf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion app/scripts/services/exportservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@ angular.module('accessimapEditeurDerApp')
if (key !== '$$hashKey' && key !== 'deletable' && key !== 'id') {
actions.append('action')
.attr('filter', key)
.attr('value', d[key]);
.attr('value', d[key])
.attr('protocol', function() {
var extension = d[key].split('.')[d[key].split('.').length - 1];
if (extension === 'mp3') {
return 'mp3';
} else {
return 'tts';
}
});
}
});
});
Expand Down

0 comments on commit c04ecaf

Please sign in to comment.