Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision bbf383bf

Von Moritz Bunkus vor fast 12 Jahren hinzugefügt

  • ID bbf383bf0e93e42769263af14bdb53737832728a
  • Vorgänger fbea33b1
  • Nachfolger 6f3b3b36

JS- und CSS-Menüs: Frame-Header vereinheitlicht

Unterschiede anzeigen:

templates/webpages/menu/menuv3.html
1 1
[%- USE T8 %]
2 2
[% USE HTML %]
3
 <script type="text/javascript" src="js/quicksearch_input.js"></script>
3 4
 <script type="text/javascript">
4 5
 <!--
5
function on_keydown_quicksearch(e) {
6
  var key;
7

  
8
  if (window.event)
9
    key = window.event.keyCode;   // IE
10
  else
11
    key = e.which;                // Firefox
12

  
13
  if (key != 13)
14
    return true;
15

  
16
  var search_term = $("#search_term");
17
  var value       = search_term.val();
18
  if (!value)
19
    return true;
20

  
21
  var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
22

  
23
  search_term.val('');
24
  window.location.href = url;
25

  
26
  return false;
27
}
28

  
29 6
function clockon() {
30 7
  var now = new Date();
31 8
  var h = now.getHours();
......
41 18
 <span class="frame-header-element frame-header-left">
42 19
    [<a href="login.pl?action=company_logo" target="_blank">[% 'new Window' | $T8 %]</a>]
43 20
    [<a href="JavaScript:top.print()">[% 'print' | $T8 %]</a>]
44
    [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch(event)">]
21
    [[% 'Search contacts' | $T8 %] <input size="15" name="search_term" id="search_term" onkeydown="return on_keydown_quicksearch($('#search_term'), event)">]
45 22
 </span>
46 23
 <span class="frame-header-element frame-header-right">
47 24
    [[% 'User' | $T8 %]: [% MYCONFIG.login | html %] -

Auch abrufbar als: Unified diff