From d4dd5e08fa9545196eaba9b90987b540ef62bd1e Mon Sep 17 00:00:00 2001 From: Paul Burgess Date: Fri, 27 Sep 2013 16:50:20 +0100 Subject: [PATCH 1/2] Update medallion.js Just changing 'my current jam is' text --- medallion.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/medallion.js b/medallion.js index aeae93c..69455e4 100644 --- a/medallion.js +++ b/medallion.js @@ -192,7 +192,7 @@ Jam.Medallion.prototype.createImageElement = function() { Jam.Medallion.prototype.createTextElement = function() { var textElement = document.createElement('p'); textElement.className = 'jam-text'; - textElement.innerHTML = Jam.escapeHTML('My current jam is '); + textElement.innerHTML = Jam.escapeHTML('Bumping in the studio: '); var linkElement = this.createLinkElement('text'); linkElement.innerHTML += '“' + Jam.escapeHTML(this.json.jam.title) + '”'; From 5a062285ae442b3f3628a26f486923ccfd4f783b Mon Sep 17 00:00:00 2001 From: Paul Burgess Date: Fri, 27 Sep 2013 17:14:43 +0100 Subject: [PATCH 2/2] Update medallion.js Made the 'My current jam is' label into an option --- medallion.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/medallion.js b/medallion.js index 69455e4..d4a9165 100644 --- a/medallion.js +++ b/medallion.js @@ -99,6 +99,12 @@ Jam.Medallion.prototype.imageSize = function() { return this.getOption('imageSize', 'small'); }; +Jam.Medallion.prototype.textLabel = function() { + return this.getOption('textLabel', 'My current jam is: '); +}; + + + Jam.Medallion.prototype.setJSON = function(json) { this.json = json; }; @@ -190,9 +196,10 @@ Jam.Medallion.prototype.createImageElement = function() { }; Jam.Medallion.prototype.createTextElement = function() { + var textLabel = this.textLabel(); var textElement = document.createElement('p'); textElement.className = 'jam-text'; - textElement.innerHTML = Jam.escapeHTML('Bumping in the studio: '); + textElement.innerHTML = Jam.escapeHTML(textLabel+" "); var linkElement = this.createLinkElement('text'); linkElement.innerHTML += '“' + Jam.escapeHTML(this.json.jam.title) + '”';