Task #1735: Détail opération utilisation icone poubelle
This commit is contained in:
parent
9fe4f7ae43
commit
878c0ff5bc
3 changed files with 8 additions and 10 deletions
|
|
@ -27,6 +27,7 @@
|
|||
- load a receipt document
|
||||
- for reconcialiation
|
||||
- update of analytic content
|
||||
*
|
||||
*/
|
||||
if ( ! defined('ALLOWED')) die(_('Non authorisé'));
|
||||
|
||||
|
|
@ -283,7 +284,7 @@ case 'file':
|
|||
{
|
||||
// Not possible to remove the file thanks a modal dialog box,
|
||||
// because of the frameset
|
||||
$x=sprintf('<a class="smallbutton" style="margin-left:12;margin-right:12" href="ajax_misc.php?op=ledger&gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return confirm(\'Effacer le document ?\')">'.SMALLX.'</a>',
|
||||
$x=sprintf('<a class="smallbutton icon" style="margin-left:12;margin-right:12" href="ajax_misc.php?op=ledger&gDossier=%d&div=%s&jr_id=%s&act=rmf" onclick="return confirm(\'Effacer le document ?\')">'."x".'</a>',
|
||||
$gDossier,$div,$jr_id);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1097,9 +1097,9 @@ class HtmlInput
|
|||
*/
|
||||
static function button_action_remove_operation($p_operation)
|
||||
{
|
||||
$rmOperation=sprintf("javascript:confirm_box(null,'"._('Voulez-vous effacer cette relation ')."',function () {remove_operation('%s','%s');});",
|
||||
$rmOperation=sprintf("confirm_box(null,'"._('Voulez-vous effacer cette relation ')."',function () {remove_operation('%s','%s');});",
|
||||
dossier::id(), $p_operation);
|
||||
$js='<a class="tinybutton" id="acop'.$p_operation.'" href="javascript:void(0)" onclick="'.$rmOperation.'">'.SMALLX.'</a>';
|
||||
$js=Icon_Action::trash("acop".$p_operation, $rmOperation);
|
||||
return $js;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,11 +189,8 @@ if ($aRap != null ) {
|
|||
|
||||
// If write access , allow to drop Reconciles operations
|
||||
if ( $access=='W') {
|
||||
$rmReconciliation=new IButton('rmr');
|
||||
$rmReconciliation->label=SMALLX;
|
||||
$rmReconciliation->class="tinybutton";
|
||||
$rmReconciliation->javascript="return confirm_box(null,'"._("vous confirmez?")."',";
|
||||
$rmReconciliation->javascript.=sprintf('function () { dropLink(\'%s\',\'%s\',\'%s\',\'%s\');deleteRowRec(\'%s\',$(\'row%d\'));})',
|
||||
$js="return confirm_box(null,'"._("vous confirmez?")."',";
|
||||
$js.=sprintf('function () { dropLink(\'%s\',\'%s\',\'%s\',\'%s\');deleteRowRec(\'%s\',$(\'row%d\'));})',
|
||||
$gDossier,
|
||||
$div,
|
||||
$jr_id,
|
||||
|
|
@ -201,8 +198,8 @@ if ($aRap != null ) {
|
|||
$tableid,
|
||||
$e
|
||||
);
|
||||
|
||||
$remove=$rmReconciliation->input();
|
||||
$remove=Icon_Action::trash(uniqid(), $js);
|
||||
// $remove=$rmReconciliation->input();
|
||||
}
|
||||
else
|
||||
$remove='';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue