aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/io-mediator.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/mediators/io-mediator.js b/js/mediators/io-mediator.js
index 7606b168..4dc29c3c 100644
--- a/js/mediators/io-mediator.js
+++ b/js/mediators/io-mediator.js
@@ -280,7 +280,7 @@ exports.IoMediator = Montage.create(Component, {
280 enumerable: false, 280 enumerable: false,
281 value: function (list) { 281 value: function (list) {
282 //Variable to store CSS definitions 282 //Variable to store CSS definitions
283 var i, str, css = ''; 283 var i, str, url, css = '';
284 //Looping through list 284 //Looping through list
285 if (list && list.length > 0) { 285 if (list && list.length > 0) {
286 //Adding each list item to string and also adding breaks 286 //Adding each list item to string and also adding breaks
@@ -292,8 +292,10 @@ exports.IoMediator = Montage.create(Component, {
292 css += '\n'+str; 292 css += '\n'+str;
293 } 293 }
294 } 294 }
295 //TODO: Add better logic for creating this string
296 url = new RegExp(window.location.protocol+'//'+window.location.host+'/js/document/templates/montage-html/', 'gi');
295 //Returning the CSS string 297 //Returning the CSS string
296 return css; 298 return css.replace(url, '');
297 } 299 }
298 } 300 }
299 //////////////////////////////////////////////////////////////////// 301 ////////////////////////////////////////////////////////////////////