diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-08-30 15:08:23 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-08-30 15:08:23 +0200 |
commit | b166ccbc5371b578dd76203b075b0e763bf9da4b (patch) | |
tree | 1aee210b138c86fcebe3225d81f802a2f3737acc | |
parent | c182313eb4e1146476bd73b7fbb9fdf66266a69f (diff) | |
download | rpg-b166ccbc5371b578dd76203b075b0e763bf9da4b.tar.gz rpg-b166ccbc5371b578dd76203b075b0e763bf9da4b.tar.bz2 |
do not prepend colon via javascript in media manager
Ignore-this: 67ae7589474461a1279720865f0d18b9
Just moves the prepending of the colon (for absolute namespaces) from the
javascript to the PHP backend code - makes reusing the javascript for
non local files easier.
darcs-hash:20090830130823-7ad00-2b53e48edd8e117ac3f7814c50ea429e06284809.gz
-rw-r--r-- | inc/media.php | 4 | ||||
-rw-r--r-- | lib/scripts/media.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/inc/media.php b/inc/media.php index 0a8eb0140..1d584db70 100644 --- a/inc/media.php +++ b/inc/media.php @@ -537,7 +537,7 @@ function media_printfile($item,$auth,$jump){ // ouput echo '<div class="'.$zebra.'"'.$jump.'>'.NL; - echo '<a name="h_'.$item['id'].'" class="'.$class.'">'.$file.'</a> '; + echo '<a name="h_:'.$item['id'].'" class="'.$class.'">'.$file.'</a> '; echo '<span class="info">('.$info.')</span>'.NL; media_fileactions($item,$auth); echo '<div class="example" id="ex_'.str_replace(':','_',$item['id']).'">'; @@ -571,7 +571,7 @@ function media_printimgdetail($item){ // output echo '<div class="detail">'; echo '<div class="thumb">'; - echo '<a name="d_'.$item['id'].'" class="select">'; + echo '<a name="d_:'.$item['id'].'" class="select">'; echo '<img src="'.$src.'" '.$att.' />'; echo '</a>'; echo '</div>'; diff --git a/lib/scripts/media.js b/lib/scripts/media.js index 17862d48b..4ae31a989 100644 --- a/lib/scripts/media.js +++ b/lib/scripts/media.js @@ -208,7 +208,7 @@ media = { } return false; } - opener.insertTags('wiki__text','{{:'+id+'|','}}',''); + opener.insertTags('wiki__text','{{'+id+'|','}}',''); if(!media.keepopen) window.close(); opener.focus(); |