noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/16: Task #1045 - Amélioration apparence


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/16: Task #1045 - Amélioration apparence : Gestion Cache les check quand on ferme la fenêtre
Date: Tue, 18 Nov 2014 01:09:00 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 3a818a9aeb82c60d9d14ed134ca9792c7246ba6a
Author: Dany De Bontridder <address@hidden>
Date:   Sun Nov 16 20:24:17 2014 +0100

    Task #1045 - Amélioration apparence  :
    Gestion Cache les check quand on ferme la fenêtre
---
 html/js/scripts.js                       |    7 +++++++
 include/class_html_input.php             |   12 ++++++++++--
 include/template/action_other_action.php |    2 +-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index 4cc5cc3..be21121 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -2451,6 +2451,13 @@ function action_show_checkbox()
         a[i].style.display = 'block';
     }
 }
+function action_hide_checkbox()
+{
+    var a = document.getElementsByName('ag_id_td');
+    for (var i = 0; i < a.length; i++) {
+        a[i].style.display = 'none';
+    }
+}
 /**
  * 
  * @param {type} obj
diff --git a/include/class_html_input.php b/include/class_html_input.php
index d883fea..aa473b3 100755
--- a/include/class_html_input.php
+++ b/include/class_html_input.php
@@ -700,10 +700,18 @@ class HtmlInput
                }
                return $_REQUEST[$ind];
        }
-       static function title_box($name,$div,$mod="close")
+        /**
+         * Title for boxes
+         * @param type $name Title
+         * @param type $div element id
+         * @param type $mod hide or close
+         * @param type $p_js if $mod is hide then you can add a javascript
+         * @return type
+         */
+       static function title_box($name,$div,$mod="close",$p_js="")
        {
                if ($mod=='close')              
$r=HtmlInput::anchor_close($div);
-               if ($mod=='hide')               
$r=HtmlInput::anchor_hide(_('Fermer'),"$('$div').hide()");
+               if ($mod=='hide')               
$r=HtmlInput::anchor_hide(_('Fermer'),"$('$div').hide();$p_js");
                 if ( $mod == 'none')    $r="";
                $r.=h2($name,' class="title" ');
                return $r;
diff --git a/include/template/action_other_action.php 
b/include/template/action_other_action.php
index 8f6d855..bb51613 100644
--- a/include/template/action_other_action.php
+++ b/include/template/action_other_action.php
@@ -14,7 +14,7 @@ echo 
HtmlInput::request_to_hidden(array("closed_action","remind_date_end","remin
                "tdoc",   
"action_query","date_start","date_end","hsstate","searchtag"));
 ?>
 <div id="other_div" class="inner_box" style="width:40%;display: none">
-    <?php echo HtmlInput::title_box(_('Actions sur plusieurs 
documents'),'other_div', 'hide') ?>
+    <?php echo HtmlInput::title_box(_('Actions sur plusieurs 
documents'),'other_div', 'hide','action_hide_checkbox();') ?>
     <?php echo _("Sélectionner les documents et l' action :")?>
     <ul style='list-style-type: none;padding-left:30px;margin: 0px' >
         <li >



reply via email to

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