1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<?php echo javascript_tag("
function getNotifierNameAndTitle()
{
return $('newNotifierName').concat(', ').concat($('newNotifierTitle'));
}
") ?>
<label for="newNotifierName">Notifier's name:</label>
<?php echo input_tag('newNotifierName', 'Name') ?>
<label for="newNotifierTitle">Notifier's title:</label>
<?php echo input_tag('newNotifierTitle', 'Title') ?>
<?php
echo button_to_function('Add',
update_element_function('notifiers',
array(
'position' => 'after',
'content' => "getNotifierNameAndTitle();",
)
)
);
?> |
Partager