From: <lu...@us...> - 2009-09-23 17:19:53
|
Revision: 21706 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=21706&view=rev Author: luciash Date: 2009-09-23 17:19:46 +0000 (Wed, 23 Sep 2009) Log Message: ----------- [FIX] smarty function.button.php: escape apostrophes to allow render the button links using JS/jQuery in ('...') Modified Paths: -------------- trunk/lib/smarty_tiki/function.button.php Modified: trunk/lib/smarty_tiki/function.button.php =================================================================== --- trunk/lib/smarty_tiki/function.button.php 2009-09-23 17:12:29 UTC (rev 21705) +++ trunk/lib/smarty_tiki/function.button.php 2009-09-23 17:19:46 UTC (rev 21706) @@ -77,11 +77,11 @@ if (!$disabled) { $flip_id = ''; if ( ! empty($params['_flip_id']) ) { - $params['_onclick'] = "javascript:flip('" + $params['_onclick'] = "javascript:flip(\'" . $params['_flip_id'] - . "');flip('" + . "\');flip(\'" . $params['_flip_id'] - . "_close','inline');return false;"; + . "_close\',\'inline\');return false;"; if ( ! isset($params['_flip_hide_text']) || $params['_flip_hide_text'] != 'n' ) { $cookie_key = 'show_' . $params['_flip_id']; $params['_text'] .= '<span id="'.$params['_flip_id'].'_close" style="display:' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |