mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
Fix: use loadurl just for textarea and numeric
This commit is contained in:
@@ -361,7 +361,7 @@ else if ($id)
|
|||||||
|
|
||||||
// Km/Price
|
// Km/Price
|
||||||
print '<tr><td>'.$langs->trans("FeesKilometersOrAmout").'</td>';
|
print '<tr><td>'.$langs->trans("FeesKilometersOrAmout").'</td>';
|
||||||
print '<td>'.$form->editInPlace($object->km, 'km', $object->element, 'text').'</td></tr>';
|
print '<td>'.$form->editInPlace($object->km, 'km', $object->element, 'numeric').'</td></tr>';
|
||||||
|
|
||||||
// Where
|
// Where
|
||||||
print '<tr><td>'.$langs->trans("CompanyVisited").'</td>';
|
print '<tr><td>'.$langs->trans("CompanyVisited").'</td>';
|
||||||
@@ -405,7 +405,7 @@ else if ($id)
|
|||||||
// Public note
|
// Public note
|
||||||
print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
|
||||||
print '<td valign="top" colspan="3">';
|
print '<td valign="top" colspan="3">';
|
||||||
print $form->editInPlace(($object->note_public ? dol_nl2br($object->note_public) : " "), 'note_public', $user->rights->deplacement->creer);
|
print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->deplacement->creer);
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
// Private note
|
// Private note
|
||||||
@@ -413,7 +413,7 @@ else if ($id)
|
|||||||
{
|
{
|
||||||
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td>';
|
||||||
print '<td valign="top" colspan="3">';
|
print '<td valign="top" colspan="3">';
|
||||||
print $form->editInPlace(($object->note_private ? dol_nl2br($object->note_private) : " "), 'note', $user->rights->deplacement->creer);
|
print $form->editInPlace(dol_nl2br($object->note_private), 'note', $user->rights->deplacement->creer);
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -156,6 +156,7 @@ class Form
|
|||||||
global $user;
|
global $user;
|
||||||
|
|
||||||
$out='';
|
$out='';
|
||||||
|
$value = ($value ? $value : " ");
|
||||||
|
|
||||||
if ($condition)
|
if ($condition)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -42,13 +42,6 @@ $(document).ready(function() {
|
|||||||
cancel : cancelInPlace,
|
cancel : cancelInPlace,
|
||||||
submit : submitInPlace,
|
submit : submitInPlace,
|
||||||
indicator : indicatorInPlace,
|
indicator : indicatorInPlace,
|
||||||
loadurl : urlLoadInPlace,
|
|
||||||
loaddata : {
|
|
||||||
type: 'text',
|
|
||||||
element: element,
|
|
||||||
table_element: table_element,
|
|
||||||
fk_element: fk_element
|
|
||||||
},
|
|
||||||
submitdata : {
|
submitdata : {
|
||||||
type: 'text',
|
type: 'text',
|
||||||
element: element,
|
element: element,
|
||||||
|
|||||||
@@ -870,7 +870,7 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
// Public note
|
// Public note
|
||||||
print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("NotePublic").'</td>';
|
||||||
print '<td valign="top" colspan="3">';
|
print '<td valign="top" colspan="3">';
|
||||||
print $form->editInPlace(($object->note_public ? dol_nl2br($object->note_public) : " "), 'note_public', $user->rights->ficheinter->creer);
|
print $form->editInPlace(dol_nl2br($object->note_public), 'note_public', $user->rights->ficheinter->creer);
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
// Private note
|
// Private note
|
||||||
@@ -878,7 +878,7 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
{
|
{
|
||||||
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("NotePrivate").'</td>';
|
||||||
print '<td valign="top" colspan="3">';
|
print '<td valign="top" colspan="3">';
|
||||||
print $form->editInPlace(($object->note_private ? dol_nl2br($object->note_private) : " "), 'note_private', $user->rights->ficheinter->creer);
|
print $form->editInPlace(dol_nl2br($object->note_private), 'note_private', $user->rights->ficheinter->creer);
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user