Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/html/letter.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/letter.js')
-rw-r--r--html/letter.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/html/letter.js b/html/letter.js
index 5d6b34f..431e052 100644
--- a/html/letter.js
+++ b/html/letter.js
@@ -29,5 +29,10 @@ enyo.kind({
letterChanged: function() {
this.letter = this.letter.toLowerCase()
this.$.itemImage.setAttribute("src", "images/letters/"+this.letter+Abcd.context.casevalue+".png");
- }
+ },
+
+ // Play sound for this letter
+ play: function(media) {
+ media.play("audio/"+Abcd.context.lang+"/database/upper_"+this.letter.toUpperCase());
+ }
}); \ No newline at end of file