From 8daf9446c27bb7804ac5f66714b08f6f94640c88 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 31 Jan 2013 18:52:01 +0530 Subject: [PATCH] fix video marker theme switch --- source/Ox.UI/Ox.UI.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/Ox.UI.js b/source/Ox.UI/Ox.UI.js index 5d399a09..a34b3cf7 100644 --- a/source/Ox.UI/Ox.UI.js +++ b/source/Ox.UI/Ox.UI.js @@ -345,9 +345,10 @@ Ox.load.UI = function(options, callback) { Ox.forEach(colors[type], function(name, hex) { image = image.replace( new RegExp(hex, 'g'), - '#' + Ox.toHex(themeData[name]) + '$' + Ox.toHex(themeData[name]) ); }); + image = image.replace(/$/g, '#'); return 'data:image/svg+xml;base64,' + btoa( image + '