noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 110/219: task #0001271: Rendre possible un c


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 110/219: task #0001271: Rendre possible un copier/coller du résultat de la calculatrice. Add a button to Pin a box
Date: Mon, 18 Dec 2017 13:22:46 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 695f1b8135a5eae99ccffb9928c0f770ca0b84dc
Author: Dany De Bontridder <address@hidden>
Date:   Tue Oct 24 21:46:38 2017 +0200

    task #0001271: Rendre possible un copier/coller du résultat de la 
calculatrice.
    Add a button to Pin a box
---
 html/js/scripts.js                     | 4 ++--
 include/template/ledger_detail_top.php | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/html/js/scripts.js b/html/js/scripts.js
index 97326f7..88ba2b9 100644
--- a/html/js/scripts.js
+++ b/html/js/scripts.js
@@ -1061,8 +1061,8 @@ function show_calc()
     }
     var sid = 'calc1';
     var shtml = '';
-    shtml += '<div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px">  
    <a onclick="removeDiv(\'calc1\');" href="javascript:void(0)" 
id="close_div">X</a></div>';
-    shtml += '<div>   <h2 class="info">Calculatrice</h2></div>';
+    shtml += '<div 
style="float:right;height:10px;display:block;margin-top:2px;margin-right:2px"><span
 id="pin_calc1"><a class="input_text" onclick="pin(\'calc1\')" 
id="close_div">&#10057;</a></span>        <a onclick="removeDiv(\'calc1\');" 
href="javascript:void(0)" id="close_div">X</a></div>';
+    shtml += '<div>   <h2 class="title">Calculatrice</h2></div>';
     shtml += '<form name="calc_line"  method="GET" onSubmit="cal();return 
false;" >Calculatrice simplifiée: écrivez simplement les opérations que vous 
voulez puis la touche retour. exemple : 1+2+3*(1/5) <input class="input_text" 
type="text" size="30" id="inp" name="calculator"> <input type="button" 
value="Efface tout" class="button" onClick="Clean();return false;" > <input 
type="button" class="button" value="Fermer" onClick="removeDiv(\'calc1\')" >';
     shtml += '</form><span id="result">  </span><br><span id="sub_total">  
Taper une formule (ex 20*5.1) puis enter  </span><br><span id="listing"> 
</span>';
 
diff --git a/include/template/ledger_detail_top.php 
b/include/template/ledger_detail_top.php
index 8b7d11a..934b31a 100644
--- a/include/template/ledger_detail_top.php
+++ b/include/template/ledger_detail_top.php
@@ -18,6 +18,9 @@
      
      echo '<A id="close_div" title="'.$msg_pop.'" onclick="var 
a=window.open(\'popup.php?'.$str.'\',\'\',\'titlebar=no,location=no,statusbar=no,menubar=no,toolbar=no,fullscreen=yes,scrollbars=yes,resizable=yes,status=no\');
 a.focus();removeDiv(\''.$div.'\')">&#11036;
 </A>';
+     printf('<span id="pin_%s" 
style="margin:0px;padding:0px;margin-right:6px;padding-top:2px;font-size:120%%;border-width:0px"
 ><a class="input_text" onclick="pin(\'%s\')" 
id="close_div">&#10057;</a></span>',
+                    $div,
+                    $div);
      echo '<A id="close_div" title="'.$msg_close.'"  
onclick="removeDiv(\''.$div.'\');">&#10761;</A>';
    }
 ?>



reply via email to

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