noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 12/33: Button close for new card


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 12/33: Button close for new card
Date: Thu, 11 Nov 2021 06:02:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 6131723f3e21388566192993a0be5fec51e6081e
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Oct 2 13:16:11 2021 +0200

    Button close for new card
---
 html/js/card.js                           | 2 +-
 include/ajax/ajax_card.php                | 1 +
 unit-test/include/class/document.Test.php | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/html/js/card.js b/html/js/card.js
index d19fd24..e3b11ef 100644
--- a/html/js/card.js
+++ b/html/js/card.js
@@ -683,7 +683,7 @@ function  successFill_ipopcard(req,json)
     }
 }
 /**
- * show the ipopup for selecting a card type, it is a needed step before adding
+ *@brief show the ipopup for selecting a card type, it is a needed step before 
adding
  * a card
  *@param input field (obj) it must have the attribute ipopup
  *       possible attribute :
diff --git a/include/ajax/ajax_card.php b/include/ajax/ajax_card.php
index 78cdae0..d9b0023 100644
--- a/include/ajax/ajax_card.php
+++ b/include/ajax/ajax_card.php
@@ -204,6 +204,7 @@ case 'bc':
         $r.=$f->blank($fd_id);
         $r.='<p style="text-align:center">';
         $r.=HtmlInput::submit('sc',_('Sauve'));
+        $r.=HtmlInput::button_close($ctl);
         $r.='</p>';
         if ( isset ($eltid)) {
             $r.=HtmlInput::hidden("eltid", $eltid);
diff --git a/unit-test/include/class/document.Test.php 
b/unit-test/include/class/document.Test.php
index 9015d15..6bb7f06 100644
--- a/unit-test/include/class/document.Test.php
+++ b/unit-test/include/class/document.Test.php
@@ -136,7 +136,7 @@ class DocumentTest extends TestCase
         $document->md_id=$md_id;
         $cnt_before=$cn->get_value("select count(*) from document");
         $document->generate($array);
-        var_dump($document);
+        
         $this->assertEquals($document->d_filename ,'all-tags.odt','Generated 
File ');
         $cnt_after=$cn->get_value("select count(*) from document");
         $this->assertTrue ($cnt_after == $cnt_before+1,"One file generated");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]