From: <ru...@us...> - 2009-06-16 06:50:12
|
Revision: 6940 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6940&view=rev Author: rurban Date: 2009-06-16 06:50:10 +0000 (Tue, 16 Jun 2009) Log Message: ----------- Add ShowHideFolder button to OptionsButtonBars fieldset Modified Paths: -------------- trunk/lib/plugin/RecentChanges.php Modified: trunk/lib/plugin/RecentChanges.php =================================================================== --- trunk/lib/plugin/RecentChanges.php 2009-06-15 15:27:55 UTC (rev 6939) +++ trunk/lib/plugin/RecentChanges.php 2009-06-16 06:50:10 UTC (rev 6940) @@ -444,9 +444,14 @@ } if ($lines) $html->pushContent($lines); - if ($first) + if ($first) { + if ($this->_args['daylist']) + $html->pushContent // force display of OptionsButtonBars + (JavaScript + ("document.getElementById('rc-action-body').style.display='block';")); $html->pushContent(HTML::p(array('class' => 'rc-empty'), $this->empty_message())); + } return $html; } @@ -1341,6 +1346,13 @@ function OptionsButtonBars ($plugin_args) { $this->__construct('fieldset', array('class' => 'wiki-rc-action')); + // Add ShowHideFolder button + $icon = $GLOBALS['WikiTheme']->_findData('images/folderArrowOpen.png'); + $img = HTML::img(array('id' => 'rc-action-img', + 'src' => $icon, + 'onClick' => "showHideFolder('rc-action')", + 'title' => _("Click to hide/show"))); + // Display selection buttons extract($plugin_args); @@ -1349,8 +1361,9 @@ $caption = _("Show changes for:"); } - $this->pushContent(HTML::legend($caption)); - $table = HTML::table(); + $this->pushContent(HTML::legend($caption,' ',$img)); + $table = HTML::table(array('id' => 'rc-action-body', + 'style' => 'display:none')); $tr = HTML::tr(); foreach (explode(",", $daylist) as $days) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |