Fix submit photo is no more hidden on smartphone.

This commit is contained in:
Laurent Destailleur 2016-04-19 19:15:31 +02:00
parent 4619040983
commit 08c379ad58
2 changed files with 3 additions and 3 deletions

View File

@ -972,8 +972,8 @@ else
print '</td></tr>';
// Photo
print '<tr class="hideonsmartphone">';
print '<td>'.fieldLabel('Photo','photoinput').'</td>';
print '<tr>';
print '<td>'.$langs->trans("PhotoFile").'</td>';
print '<td colspan="3">';
if ($object->photo) {
print $form->showphoto('contact',$object);

View File

@ -5765,7 +5765,7 @@ class Form
if ($caneditfield)
{
if ($object->photo) $ret.="<br>\n";
$ret.='<table class="nobordernopadding hideonsmartphone">';
$ret.='<table class="nobordernopadding">';
if ($object->photo) $ret.='<tr><td align="center"><input type="checkbox" class="flat photodelete" name="deletephoto" id="photodelete"> '.$langs->trans("Delete").'<br><br></td></tr>';
$ret.='<tr><td>'.$langs->trans("PhotoFile").'</td></tr>';
$ret.='<tr><td><input type="file" class="flat" name="photo" id="photoinput"></td></tr>';