New: Default choice for interactive confirm box is yes by default, and no only for delete actions. This reduce number of clicks required to validate actions and is still safe to dangerous actions.
This commit is contained in:
parent
f360fe7a4e
commit
4b246bfb68
@ -58,6 +58,9 @@ For users:
|
|||||||
- New: Postgresql experimental support seems to work completely.
|
- New: Postgresql experimental support seems to work completely.
|
||||||
- New: Changes in Dolibarr core to allow to use cache servers (see Memcached module on
|
- New: Changes in Dolibarr core to allow to use cache servers (see Memcached module on
|
||||||
dolistore.com).
|
dolistore.com).
|
||||||
|
- New: Default choice for interactive confirm box is yes by default, and no only for
|
||||||
|
delete actions. This reduce number of clicks required to validate actions and
|
||||||
|
is still safe to dangerous actions.
|
||||||
- Fix: Durations are correctly shown for languages using PM/AM dates.
|
- Fix: Durations are correctly shown for languages using PM/AM dates.
|
||||||
- Fix: A lot of fixes in Point of Sale module.
|
- Fix: A lot of fixes in Point of Sale module.
|
||||||
- Fix: Debug experimental module widthrawal.
|
- Fix: Debug experimental module widthrawal.
|
||||||
|
|||||||
@ -1968,7 +1968,7 @@ else
|
|||||||
if ($_GET['action'] == 'converttoreduc')
|
if ($_GET['action'] == 'converttoreduc')
|
||||||
{
|
{
|
||||||
$text=$langs->trans('ConfirmConvertToReduc');
|
$text=$langs->trans('ConfirmConvertToReduc');
|
||||||
$ret=$html->form_confirm($_SERVER['PHP_SELF'].'?facid='.$fac->id,$langs->trans('ConvertToReduc'),$text,'confirm_converttoreduc','',0,2);
|
$ret=$html->form_confirm($_SERVER['PHP_SELF'].'?facid='.$fac->id,$langs->trans('ConvertToReduc'),$text,'confirm_converttoreduc','',"yes",2);
|
||||||
if ($ret == 'html') print '<br>';
|
if ($ret == 'html') print '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2010,14 +2010,14 @@ else
|
|||||||
$text.=$notify->confirmMessage('NOTIFY_VAL_FAC',$fac->socid);
|
$text.=$notify->confirmMessage('NOTIFY_VAL_FAC',$fac->socid);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ret=$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ValidateBill'),$text,'confirm_valid','',0,($conf->notification->enabled?0:2));
|
$ret=$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ValidateBill'),$text,'confirm_valid','',"yes",($conf->notification->enabled?0:2));
|
||||||
if ($ret == 'html') print '<br>';
|
if ($ret == 'html') print '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Confirmation du classement paye
|
// Confirmation du classement paye
|
||||||
if ($_GET['action'] == 'paid' && $resteapayer <= 0)
|
if ($_GET['action'] == 'paid' && $resteapayer <= 0)
|
||||||
{
|
{
|
||||||
$ret=$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidBill',$fac->ref),'confirm_paid','',0,1);
|
$ret=$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidBill',$fac->ref),'confirm_paid','',"yes",1);
|
||||||
if ($ret == 'html') print '<br>';
|
if ($ret == 'html') print '<br>';
|
||||||
}
|
}
|
||||||
if ($_GET['action'] == 'paid' && $resteapayer > 0)
|
if ($_GET['action'] == 'paid' && $resteapayer > 0)
|
||||||
@ -2047,7 +2047,7 @@ else
|
|||||||
array('type' => 'text', 'name' => 'close_note', 'label' => $langs->trans("Comment"), 'value' => '', 'size' => '100')
|
array('type' => 'text', 'name' => 'close_note', 'label' => $langs->trans("Comment"), 'value' => '', 'size' => '100')
|
||||||
);
|
);
|
||||||
// Paiement incomplet. On demande si motif = escompte ou autre
|
// Paiement incomplet. On demande si motif = escompte ou autre
|
||||||
$ret=$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidPartially',$fac->ref),'confirm_paid_partially',$formquestion);
|
$ret=$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ClassifyPaid'),$langs->trans('ConfirmClassifyPaidPartially',$fac->ref),'confirm_paid_partially',$formquestion,"yes");
|
||||||
if ($ret == 'html') print '<br>';
|
if ($ret == 'html') print '<br>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2088,7 +2088,7 @@ else
|
|||||||
array('type' => 'text', 'name' => 'close_note', 'label' => $langs->trans("Comment"), 'value' => '', 'size' => '100')
|
array('type' => 'text', 'name' => 'close_note', 'label' => $langs->trans("Comment"), 'value' => '', 'size' => '100')
|
||||||
);
|
);
|
||||||
|
|
||||||
$ret=$html->form_confirm($_SERVER['PHP_SELF'].'?facid='.$fac->id,$langs->trans('CancelBill'),$langs->trans('ConfirmCancelBill',$fac->ref),'confirm_canceled',$formquestion);
|
$ret=$html->form_confirm($_SERVER['PHP_SELF'].'?facid='.$fac->id,$langs->trans('CancelBill'),$langs->trans('ConfirmCancelBill',$fac->ref),'confirm_canceled',$formquestion,"yes");
|
||||||
if ($ret == 'html') print '<br>';
|
if ($ret == 'html') print '<br>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user