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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt (-1 / +5 lines)
Lines 96-101 $(document).ready(function(){ Link Here
96
    }));
96
    }));
97
97
98
    $("#searchform").on('submit', filter);
98
    $("#searchform").on('submit', filter);
99
    $(".filterByLetter").on("click",function(e){
100
        e.preventDefault();
101
        filterByFirstLetterSurname($(this).text());
102
    });
99
});
103
});
100
104
101
function filter() {
105
function filter() {
Lines 197-203 function filterByFirstLetterSurname(letter) { Link Here
197
        <div class="browse">
201
        <div class="browse">
198
            Browse by last name:
202
            Browse by last name:
199
            [% FOREACH letter IN alphabet.split(' ') %]
203
            [% FOREACH letter IN alphabet.split(' ') %]
200
                <a style="cursor:pointer" onclick="filterByFirstLetterSurname('[% letter %]');">[% letter %]</a>
204
                <a href="#" class="filterByLetter">[% letter %]</a>
201
            [% END %]
205
            [% END %]
202
        </div>
206
        </div>
203
207
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-2 / +5 lines)
Lines 93-98 $(document).ready(function() { Link Here
93
        });
93
        });
94
        return true;
94
        return true;
95
    });
95
    });
96
    $(".filterByLetter").on("click",function(e){
97
        e.preventDefault();
98
        filterByFirstLetterSurname($(this).text());
99
    });
96
});
100
});
97
101
98
var dtMemberResults;
102
var dtMemberResults;
Lines 332-338 function filterByFirstLetterSurname(letter) { Link Here
332
          <div class="browse">
336
          <div class="browse">
333
            Browse by last name:
337
            Browse by last name:
334
            [% FOREACH letter IN alphabet.split(' ') %]
338
            [% FOREACH letter IN alphabet.split(' ') %]
335
              <a style="cursor:pointer" onclick="filterByFirstLetterSurname('[% letter %]');">[% letter %]</a>
339
                <a href="#" class="filterByLetter">[% letter %]</a>
336
            [% END %]
340
            [% END %]
337
          </div>
341
          </div>
338
342
339
- 

Return to bug 14193