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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+10 lines)
Lines 1954-1959 legend:hover { Link Here
1954
        [% END %]
1954
        [% END %]
1955
        $("#guarantor_template").hide();
1955
        $("#guarantor_template").hide();
1956
1956
1957
        //Add class ignore_validation to hidden new_guarantor_relationship to ignore it when form is validated
1958
        if($(".new_guarantor_relationship").is(":hidden")){
1959
            $(".new_guarantor_relationship").addClass("ignore_validation");
1960
        }
1961
1962
        // Remove class ignore_validation from new_guarantor_relationship to validate missing relationship value
1963
        if($(".new_guarantor_relationship").is(":visible")){
1964
            $(".new_guarantor_relationship").removeClass("ignore_validation");
1965
        }
1966
1957
        var TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
1967
        var TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %];
1958
        var PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
1968
        var PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %];
1959
1969
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-2 / +6 lines)
Lines 118-123 function select_user(borrowernumber, borrower, relationship) { Link Here
118
        $('#guarantor_relationships').append( fieldset );
118
        $('#guarantor_relationships').append( fieldset );
119
        fieldset.show();
119
        fieldset.show();
120
120
121
        // Remove class ignore_validation from new_guarantor_relationship to validate missing relationship value
122
        if($(".new_guarantor_relationship").is(":visible")){
123
            $(".new_guarantor_relationship").removeClass("ignore_validation");
124
        }
125
121
        if ( relationship ) {
126
        if ( relationship ) {
122
            fieldset.find('.new_guarantor_relationship').val(relationship);
127
            fieldset.find('.new_guarantor_relationship').val(relationship);
123
        }
128
        }
Lines 240-246 $(document).ready(function(){ Link Here
240
        jQuery.validator.messages.phone);
245
        jQuery.validator.messages.phone);
241
246
242
    $("#entryform").validate({
247
    $("#entryform").validate({
243
        ignore: "",
248
        ignore: ".ignore_validation",
244
        rules: {
249
        rules: {
245
            email: {
250
            email: {
246
                email: true
251
                email: true
247
- 

Return to bug 34671