noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 60/219: Inplace_Edit : improve button + test


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 60/219: Inplace_Edit : improve button + test
Date: Mon, 18 Dec 2017 13:22:38 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 85fb1d0a02e36ae49224706e20f3e0abb234081b
Author: Dany De Bontridder <address@hidden>
Date:   Tue Sep 26 22:56:27 2017 +0200

    Inplace_Edit : improve button + test
---
 scenario/inplace_edit.test.php | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/scenario/inplace_edit.test.php b/scenario/inplace_edit.test.php
index 6800165..5f2acfb 100644
--- a/scenario/inplace_edit.test.php
+++ b/scenario/inplace_edit.test.php
@@ -33,15 +33,14 @@ if (!isset($_REQUEST["TestAjaxFile"])) {
     /***********************************************
      * If TestAjaxFile is not set it is not a ajax call
      *********************************************** */
-    $hello = new IText("hello");
-    $hello->value = "2012";
+    $hello = new IText("hello","Click me");
     $hello->id = "hello_ajax";
    
     $ajax_hello = new Inplace_Edit($hello);
     $ajax_hello->set_callback("ajax_test.php");
     $ajax_hello->add_json_param("TestAjaxFile", __FILE__) ;
     $ajax_hello->add_json_param("gDossier", Dossier::id());
-    echo $ajax_hello->input();
+    echo "#".$ajax_hello->input()."#";
     
     
 } else {
@@ -55,7 +54,7 @@ if (!isset($_REQUEST["TestAjaxFile"])) {
         $ajax_hello->set_callback("ajax_test.php");
         $ajax_hello->add_json_param("TestAjaxFile", __FILE__);
         $ajax_hello->add_json_param("gDossier", Dossier::id());
-        echo $ajax_hello->ajax_input();
+        echo " [  ".$ajax_hello->ajax_input()." ] ";
     }
     if ( $action == "ok") {
         $ajax_hello = Inplace_Edit::build($input);



reply via email to

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