mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
issue 1541, Added a button, delete value of date type extra variable
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10200 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c3bf5c053e
commit
88f7a46fc5
1 changed files with 5 additions and 1 deletions
|
|
@ -254,7 +254,7 @@
|
|||
|
||||
$buff .=
|
||||
'<input type="hidden" name="'.$column_name.'" value="'.$value.'" />'.
|
||||
'<input type="text" id="date_'.$column_name.'" value="'.zdate($value,'Y-m-d').'" class="date" />'."\n".
|
||||
'<input type="text" id="date_'.$column_name.'" value="'.zdate($value,'Y-m-d').'" class="date" /> <input type="button" value="' . Context::getLang('cmd_delete') . '" id="dateRemover_' . $column_name . '" />'."\n".
|
||||
'<script type="text/javascript">'."\n".
|
||||
'(function($){'."\n".
|
||||
' $(function(){'."\n".
|
||||
|
|
@ -263,6 +263,10 @@
|
|||
' };'."\n".
|
||||
' $.extend(option,$.datepicker.regional[\''.Context::getLangType().'\']);'."\n".
|
||||
' $("#date_'.$column_name.'").datepicker(option);'."\n".
|
||||
' $("#dateRemover_' . $column_name . '").click(function(){' . "\n" .
|
||||
' $(this).siblings("input").val("");' . "\n" .
|
||||
' return false;' . "\n" .
|
||||
' })' . "\n" .
|
||||
' });'."\n".
|
||||
'})(jQuery);'."\n".
|
||||
'</script>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue