Das ungrlückliche Script ./js/highlight_input.js entfernt und dafür input.focus einge...
authorHolger Lindemann <hli@lx-system.de>
Thu, 14 Oct 2010 14:00:54 +0000 (16:00 +0200)
committerHolger Lindemann <hli@lx-system.de>
Thu, 14 Oct 2010 14:00:54 +0000 (16:00 +0200)
SL/Form.pm
css/lx-office-erp.css
js/highlight_input.js [deleted file]
templates/webpages/ct/form_header.html

index fad6e8e..56e46f7 100644 (file)
@@ -727,7 +727,6 @@ sub header {
   <link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
 
   <meta name="robots" content="noindex,nofollow" />
-  <script type="text/javascript" src="js/highlight_input.js"></script>
 
   <link rel="stylesheet" type="text/css" href="css/tabcontent.css" />
   <script type="text/javascript" src="js/tabcontent.js">
index b647950..d3d6835 100644 (file)
@@ -259,3 +259,7 @@ label {
   background-color: #ffcccc;
   padding: 3px;
 }
+input:focus {
+    background-color:yellow;
+}
+
diff --git a/js/highlight_input.js b/js/highlight_input.js
deleted file mode 100644 (file)
index eddbe1e..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-//Highlight form element- © Dynamic Drive (www.dynamicdrive.com)
-//For full source code, 100's more DHTML scripts, and TOS,
-//visit http://www.dynamicdrive.com
-
-var highlightcolor="yellow"
-
-var ns6=document.getElementById&&!document.all
-var previous=''
-var eventobj
-
-//Regular expression to highlight only form elements
-var intended=/INPUT|TEXTAREA|SELECT|OPTION/
-
-//Function to check whether element clicked is form element
-function checkel(which){
-if (which.style&&intended.test(which.tagName)){
-if (ns6&&eventobj.nodeType==3)
-eventobj=eventobj.parentNode.parentNode
-return true
-}
-else
-return false
-}
-
-//Function to highlight form element
-function highlight(e){
-eventobj=ns6? e.target : event.srcElement
-if (previous!=''){
-if (checkel(previous))
-previous.style.backgroundColor=''
-previous=eventobj
-if (checkel(eventobj))
-eventobj.style.backgroundColor=highlightcolor
-}
-else{
-if (checkel(eventobj))
-eventobj.style.backgroundColor=highlightcolor
-previous=eventobj
-}
-}
\ No newline at end of file
index b045521..a6f2ceb 100644 (file)
@@ -1,10 +1,10 @@
 [%- USE T8 %]
 [% USE HTML %][% USE LxERP %]
-<body onLoad="fokus()">
+<body>
 
  <div class="listtop">[% title %]</div>
 
- <form method="post" name="ct" action="ct.pl" onKeyUp="highlight(event)" onClick="highlight(event)">
+ <form method="post" name="ct" action="ct.pl" >
 
   <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#" rel="billing">[% 'Billing Address' | $T8 %]</a></li>