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

(-)a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js (-16 / +21 lines)
Lines 15-36 $(document).ready(function(){ Link Here
15
    } else {
15
    } else {
16
        $("#filteraction_off").toggle();
16
        $("#filteraction_off").toggle();
17
    }
17
    }
18
19
    searchfield_date_tooltip();
18
    $("#searchfieldstype").change(function() {
20
    $("#searchfieldstype").change(function() {
19
        var MSG_DATE_FORMAT = "";
21
        searchfield_date_tooltip();
20
        if ( $(this).val() == 'dateofbirth' ) {
21
            if( dateformat == 'us' ){
22
                MSG_DATE_FORMAT = MSG_DATE_FORMAT_US;
23
            } else if( dateformat == 'iso' ){
24
                MSG_DATE_FORMAT = MSG_DATE_FORMAT_ISO;
25
            } else if( dateformat == 'metric' ){
26
                MSG_DATE_FORMAT = MSG_DATE_FORMAT_METRIC;
27
            } else if( dateformat == 'dmydot' ){
28
                MSG_DATE_FORMAT = MSG_DATE_FORMAT_DMYDOT;
29
            }
30
            $('#searchmember').attr("title", MSG_DATE_FORMAT).tooltip('show');
31
        } else {
32
            $('#searchmember').tooltip('destroy');
33
        }
34
    });
22
    });
35
23
36
    if( CAN_user_borrowers_edit_borrowers ){
24
    if( CAN_user_borrowers_edit_borrowers ){
Lines 104-109 $(document).ready(function(){ Link Here
104
    });
92
    });
105
});
93
});
106
94
95
function searchfield_date_tooltip() {
96
    var MSG_DATE_FORMAT = "";
97
    if ( $("#searchfieldstype").val() == 'dateofbirth' ) {
98
        if( dateformat == 'us' ){
99
            MSG_DATE_FORMAT = MSG_DATE_FORMAT_US;
100
        } else if( dateformat == 'iso' ){
101
            MSG_DATE_FORMAT = MSG_DATE_FORMAT_ISO;
102
        } else if( dateformat == 'metric' ){
103
            MSG_DATE_FORMAT = MSG_DATE_FORMAT_METRIC;
104
        } else if( dateformat == 'dmydot' ){
105
            MSG_DATE_FORMAT = MSG_DATE_FORMAT_DMYDOT;
106
        }
107
        $('#searchmember').attr("title", MSG_DATE_FORMAT).tooltip('show');
108
    } else {
109
        $('#searchmember').tooltip('destroy');
110
    }
111
}
112
107
function confirm_updatechild() {
113
function confirm_updatechild() {
108
    var is_confirmed = window.confirm( MSG_CONFIRM_UPDATE_CHILD );
114
    var is_confirmed = window.confirm( MSG_CONFIRM_UPDATE_CHILD );
109
    if (is_confirmed) {
115
    if (is_confirmed) {
110
- 

Return to bug 14794