aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTymoteusz Jankowski <tymoteusz.jankowski@ext.allegro.pl>2015-07-22 08:38:11 +0200
committerTymoteusz Jankowski <tymoteusz.jankowski@ext.allegro.pl>2015-07-22 08:55:21 +0200
commitadbed79b4ecb3e8b4e2861960aec03f737827aa0 (patch)
tree88c763f139e522c7530d8f4ca5b9bf6530facbec
parentf3ea6835364435a6e3b7992c36e86749da0479e6 (diff)
downloadtipboard-adbed79b4ecb3e8b4e2861960aec03f737827aa0.tar.gz
tipboard-adbed79b4ecb3e8b4e2861960aec03f737827aa0.tar.bz2
tipboard-adbed79b4ecb3e8b4e2861960aec03f737827aa0.zip
Fixed styling text-tile.
There was a buggy selector for style applying in text-tile which took only a text class instead of 'tile id followed by the class'
-rw-r--r--tipboard/tiles/text.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tipboard/tiles/text.js b/tipboard/tiles/text.js
index 457cc02..b0ce783 100644
--- a/tipboard/tiles/text.js
+++ b/tipboard/tiles/text.js
@@ -11,11 +11,12 @@ function updateTileText(id, data, meta, tipboard) {
var nodeWithText = containers[0];
$(nodeWithText).html(data['text']);
+ var textSelector = '#' + id + ' .text-container';
if (meta.font_size) {
- $('.text-container').css("font-size", meta.font_size);
+ $(textSelector).css("font-size", meta.font_size);
}
if (meta.font_color) {
- $('.text-container').css(
+ $(textSelector).css(
"color", Tipboard.DisplayUtils.replaceFromPalette(meta.font_color)
);
}