From: <nk...@us...> - 2014-07-22 05:06:41
|
Revision: 52073 http://sourceforge.net/p/tikiwiki/code/52073 Author: nkoth Date: 2014-07-22 05:06:33 +0000 (Tue, 22 Jul 2014) Log Message: ----------- [bp/r52072][FIX] Default setting for input type fields not setting Revision Links: -------------- http://sourceforge.net/p/tikiwiki/code/52072 Modified Paths: -------------- branches/12.x/lib/wiki-plugins/wikiplugin_customsearch.php Modified: branches/12.x/lib/wiki-plugins/wikiplugin_customsearch.php =================================================================== --- branches/12.x/lib/wiki-plugins/wikiplugin_customsearch.php 2014-07-22 05:04:50 UTC (rev 52072) +++ branches/12.x/lib/wiki-plugins/wikiplugin_customsearch.php 2014-07-22 05:06:33 UTC (rev 52073) @@ -420,6 +420,9 @@ $element = $document->createElement('input'); cs_design_setbasic($element, $fieldid, $fieldname, $arguments); + if (!empty($default)) { + $arguments['default'] = $default; + } $script .= " (function (id, config, fieldname) { var field = $('#' + id); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |