View | Details | Raw Unified | Return to bug 8845
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (+1 lines)
Lines 13-18 Link Here
13
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.hotkeys.min.js"></script>
13
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.hotkeys.min.js"></script>
14
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
14
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
15
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
15
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
16
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.qtip.js"></script>
16
[% IF ( login ) %]
17
[% IF ( login ) %]
17
    <link rel="stylesheet" type="text/css" href="[% themelang %]/css/login.css" />
18
    <link rel="stylesheet" type="text/css" href="[% themelang %]/css/login.css" />
18
[% END %]
19
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-1 / +22 lines)
Lines 19-24 Link Here
19
          <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option>
19
          <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option>
20
          <option value='dateofbirth'>Date of birth</option>
20
          <option value='dateofbirth'>Date of birth</option>
21
      </select>
21
      </select>
22
      <script type="text/javascript">
23
          $("#searchfields").change(function() {
24
              if ( $(this).val() == 'dateofbirth' ) {
25
                  [% IF dateformat == 'us' %]
26
                      [% SET format = 'MM/DD/YYYY' %]
27
                  [% ELSIF dateformat == 'iso' %]
28
                      [% SET format = 'YYYY-MM-DD' %]
29
                  [% ELSIF dateformat == 'metric' %]
30
                      [% SET format = 'DD/MM/YYYY' %]
31
                  [% END %]
32
33
                  $('#searchmember').qtip({
34
                      content: 'Dates of birth should be entered in the format "[% format %]"',
35
                      style: {
36
                          tip: 'topLeft'
37
                      }
38
                  })
39
              } else {
40
                  $('#searchmember').qtip('destroy');
41
              }
42
          });
43
      </script>
22
44
23
    <label for="orderby">Order by:</label>
45
    <label for="orderby">Order by:</label>
24
    <select name="orderby" id="searchorderby">
46
    <select name="orderby" id="searchorderby">
25
- 

Return to bug 8845