From 8d644cc27a22ecaa7d951c25ff47d5fc6e046aeb Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 9 Aug 2011 19:07:24 +0200 Subject: [PATCH] use Ox.UI.getImageURL() --- static/js/pandora/ui/editor.js | 2 +- static/js/pandora/ui/folderBrowserList.js | 18 +++++++++--------- static/js/pandora/ui/foldersList.js | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/static/js/pandora/ui/editor.js b/static/js/pandora/ui/editor.js index 66464141..eb34f886 100644 --- a/static/js/pandora/ui/editor.js +++ b/static/js/pandora/ui/editor.js @@ -25,7 +25,7 @@ pandora.ui.annotations = function() { $bin.$content.append( $('
').css({ height: '20px' }).append( $('
').css({ float: 'left', width: '16px', height: '16px', margin: '1px'}).append( - $('').attr({ src: Ox.UI.getImagePath('iconFind.svg') }).css({ width: '16px', height: '16px', border: 0, background: 'rgb(64, 64, 64)', WebkitBorderRadius: '2px' }) + $('').attr({ src: Ox.UI.getImageURL('iconFind') }).css({ width: '16px', height: '16px', border: 0, background: 'rgb(64, 64, 64)', WebkitBorderRadius: '2px' }) ) ).append( $('
').css({ float: 'left', width: '122px', height: '14px', margin: '2px' }).html('Foo') diff --git a/static/js/pandora/ui/folderBrowserList.js b/static/js/pandora/ui/folderBrowserList.js index 881f39ba..31b3991d 100644 --- a/static/js/pandora/ui/folderBrowserList.js +++ b/static/js/pandora/ui/folderBrowserList.js @@ -55,7 +55,7 @@ pandora.ui.folderBrowserList = function(id) { format: function(value) { return $('') .attr({ - src: Ox.UI.getImagePath('symbolFind.svg') + src: Ox.UI.getImageURL('symbolFind') }) .css({ width: '10px', @@ -68,7 +68,7 @@ pandora.ui.folderBrowserList = function(id) { operator: '+', title: $('') .attr({ - src: Ox.UI.getImagePath('symbolFind.svg') + src: Ox.UI.getImageURL('symbolFind') }) .css({ width: '10px', @@ -83,8 +83,8 @@ pandora.ui.folderBrowserList = function(id) { format: function(value) { return $('') .attr({ - src: Ox.UI.getImagePath( - 'symbol' + (id == 'favorite' ? 'Check' : 'Star') + '.svg' + src: Ox.UI.getImageURL( + 'symbol' + (id == 'favorite' ? 'Check' : 'Star') ) }) .css({ @@ -99,8 +99,8 @@ pandora.ui.folderBrowserList = function(id) { operator: '+', title: $('') .attr({ - src: Ox.UI.getImagePath( - 'symbol' + (id == 'favorite' ? 'Check' : 'Star') + '.svg' + src: Ox.UI.getImageURL( + 'symbol' + (id == 'favorite' ? 'Check' : 'Star') ) }) .css({ @@ -287,7 +287,7 @@ pandora.ui.folderList = function(id) { format: function(value) { return $('') .attr({ - src: Ox.UI.getImagePath('symbolFind.svg') + src: Ox.UI.getImageURL('symbolFind') }) .css({ width: '10px', @@ -307,8 +307,8 @@ pandora.ui.folderList = function(id) { //var symbols = {private: 'Publish', public: 'Publish', featured: 'Star'}; return $('') .attr({ - src: Ox.UI.getImagePath( - 'symbol' + (value == 'featured' ? 'Star' : 'Publish') + '.svg' + src: Ox.UI.getImageURL( + 'symbol' + (value == 'featured' ? 'Star' : 'Publish') ) }) .css({ diff --git a/static/js/pandora/ui/foldersList.js b/static/js/pandora/ui/foldersList.js index 39597692..0bf7cf52 100644 --- a/static/js/pandora/ui/foldersList.js +++ b/static/js/pandora/ui/foldersList.js @@ -97,7 +97,7 @@ pandora.ui.folderList = function(id) { format: function(value) { return $('') .attr({ - src: Ox.UI.getImagePath('symbolFind.svg') + src: Ox.UI.getImageURL('symbolFind') }) .css({ width: '10px', @@ -117,8 +117,8 @@ pandora.ui.folderList = function(id) { //var symbols = {private: 'Publish', public: 'Publish', featured: 'Star'}; return $('') .attr({ - src: Ox.UI.getImagePath( - 'symbol' + (value == 'featured' ? 'Star' : 'Publish') + '.svg' + src: Ox.UI.getImageURL( + 'symbol' + (value == 'featured' ? 'Star' : 'Publish') ) }) .css({