mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-15 06:01:19 +00:00
show placeholder if set in task config
This commit is contained in:
parent
153796b82c
commit
0638776bc5
|
@ -299,7 +299,8 @@ $(document).ready( function() {
|
||||||
'type'=>(($param['type'] == 'integer') ? 'number' : 'text'),
|
'type'=>(($param['type'] == 'integer') ? 'number' : 'text'),
|
||||||
'id'=>'params_'.$param['name'],
|
'id'=>'params_'.$param['name'],
|
||||||
'name'=>'params['.$param['name'].']',
|
'name'=>'params['.$param['name'].']',
|
||||||
'required'=>false
|
'required'=>false,
|
||||||
|
'placeholder'=>isset($param['placeholder']) ? $param['placeholder'] : ''
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'help'=>isset($param['description']) ? $param['description'] : getMLText("task_".$extname."_".$taskname."_".$param['name']."_desc")
|
'help'=>isset($param['description']) ? $param['description'] : getMLText("task_".$extname."_".$taskname."_".$param['name']."_desc")
|
||||||
|
@ -502,7 +503,8 @@ $(document).ready( function() {
|
||||||
'id'=>'params_'.$param['name'],
|
'id'=>'params_'.$param['name'],
|
||||||
'name'=>'params['.$param['name'].']',
|
'name'=>'params['.$param['name'].']',
|
||||||
'value'=>$task->getParameter()[$param['name']],
|
'value'=>$task->getParameter()[$param['name']],
|
||||||
'required'=>false
|
'required'=>false,
|
||||||
|
'placeholder'=>isset($param['placeholder']) ? $param['placeholder'] : ''
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'help'=>isset($param['description']) ? $param['description'] : getMLText("task_".$extname."_".$taskname."_".$param['name']."_desc")
|
'help'=>isset($param['description']) ? $param['description'] : getMLText("task_".$extname."_".$taskname."_".$param['name']."_desc")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user