From: <xa...@us...> - 2013-05-31 16:04:37
|
Revision: 46124 http://sourceforge.net/p/tikiwiki/code/46124 Author: xavidp Date: 2013-05-31 16:04:34 +0000 (Fri, 31 May 2013) Log Message: ----------- [ENH]Added a param for lazy users willing to use editable fields already defined in the fields param Modified Paths: -------------- branches/11.x/lib/wiki-plugins/wikiplugin_trackerlist.php Modified: branches/11.x/lib/wiki-plugins/wikiplugin_trackerlist.php =================================================================== --- branches/11.x/lib/wiki-plugins/wikiplugin_trackerlist.php 2013-05-31 16:03:23 UTC (rev 46123) +++ branches/11.x/lib/wiki-plugins/wikiplugin_trackerlist.php 2013-05-31 16:04:34 UTC (rev 46124) @@ -713,6 +713,19 @@ 'separator' => ':', 'default' => array(), ), + 'editableall' => array( + 'required' => false, + 'name' => tr('Inline edit All'), + 'description' => tr('Allow all displayed fields to be editable'), + 'default' => 'y', + 'advanced' => true, + 'filter' => 'alpha', + 'options' => array( + array('text' => '', 'value' => ''), + array('text' => tra('Yes'), 'value' => 'y'), + array('text' => tra('No'), 'value' => 'n') + ) + ), ) ); } @@ -737,6 +750,7 @@ 'calendardelta' => '', 'force_compile' => 'n', 'editable' => array(), + 'editableall' => 'y', ); $params = array_merge($default, $params); @@ -779,6 +793,9 @@ } else { $limit = ''; } + if ($editableall=='y') { + $editable = $fields; + } if (!empty($filterfield) && !empty($limit)) { $limit = array_unique(array_merge($limit, $filterfield)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |