openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 33e77594d1b20d6972df7dd7d4aa6e0d1233ffc2
parent eeee7d64ae4375a96bc0ab9f3ee5300e87c0ee98
Author: dankert <devnull@localhost>
Date:   Wed, 16 Feb 2011 23:13:38 +0100

JavaScript-Links unverändert verwenden.

Diffstat:
themes/default/include/html/link.inc.php | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/themes/default/include/html/link.inc.php b/themes/default/include/html/link.inc.php @@ -40,6 +40,8 @@ #IF-ATTR url# $tmp_url = $attr_url; #END-IF - + + if ( substr($tmp_url,0,10) != 'javascript' ) + $tmp_url = "javascript:loadViewByName('".$attr_target."','".$tmp_url.(isset($attr_anchor)?'#'.$attr_anchor:'')."'); return false;"; -?><a target="<?php echo $attr_frame ?>"<?php if (isset($attr_name)) { ?> name="<?php echo $attr_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="javascript:loadViewByName('<?php echo $attr_target ?>','<?php echo $tmp_url.(isset($attr_anchor)?'#'.$attr_anchor:'') ?>'); return false; "<?php } ?> class="<?php echo $attr_class ?>"<?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>">- \ No newline at end of file +?><a target="<?php echo $attr_frame ?>"<?php if (isset($attr_name)) { ?> name="<?php echo $attr_name ?>"<?php }else{ ?> href="javascript:void(0);" onclick="<?php echo $tmp_url ?>"<?php } ?> class="<?php echo $attr_class ?>"<?php if (isset($attr_accesskey)) echo ' accesskey="'.$attr_accesskey.'"' ?> title="<?php echo encodeHtml($attr_title) ?>">+ \ No newline at end of file