summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/scripts/edit.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js
index bb8972f9a..5bc7fe96a 100644
--- a/lib/scripts/edit.js
+++ b/lib/scripts/edit.js
@@ -31,7 +31,11 @@ function createToolButton(icon,label,key,id){
}
// create the icon and add it to the button
- ico.src = DOKU_BASE+'lib/images/toolbar/'+icon;
+ if(icon.substr(0,1) == '/'){
+ ico.src = icon;
+ }else{
+ ico.src = DOKU_BASE+'lib/images/toolbar/'+icon;
+ }
btn.appendChild(ico);
return btn;
@@ -65,7 +69,11 @@ function createPicker(id,list,icobase,edid){
// associative array?
if(isNaN(key)){
var ico = document.createElement('img');
- ico.src = DOKU_BASE+'lib/images/'+icobase+'/'+list[key];
+ if(list[key].substr(0,1) == '/'){
+ ico.src = list[key];
+ }else{
+ ico.src = DOKU_BASE+'lib/images/'+icobase+'/'+list[key];
+ }
btn.title = key;
btn.appendChild(ico);
eval("btn.onclick = function(){pickerInsert('"+id+"','"+