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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt (-2 / +15 lines)
Lines 44-50 Link Here
44
44
45
    [% ELSIF op=='invite' %]
45
    [% ELSIF op=='invite' %]
46
        <div id="invite">
46
        <div id="invite">
47
        <form method="post" onsubmit="return $.trim($('#invite_address').val())!='';">
47
        <form id="share_list">
48
        <fieldset class="rows">
48
        <fieldset class="rows">
49
            <ol>
49
            <ol>
50
            <input type="hidden" name="op" value="conf_invite"/>
50
            <input type="hidden" name="op" value="conf_invite"/>
Lines 89-92 Link Here
89
    </div> <!-- / .container-fluid -->
89
    </div> <!-- / .container-fluid -->
90
</div> <!-- / .main -->
90
</div> <!-- / .main -->
91
[% INCLUDE 'opac-bottom.inc' %]
91
[% INCLUDE 'opac-bottom.inc' %]
92
[% BLOCK jsinclude %][% END %]
92
[% BLOCK jsinclude %]
93
<script type="text/javascript">
94
//<![CDATA[
95
    $(document).ready(function(){
96
        $("#share_list").on('submit', function(e) {
97
            var address = $("#invite_address").val();
98
            if ( address.length == 0) {
99
                e.preventDefault();
100
            }
101
        });
102
    });
103
//]]>
104
</script>
105
[% END %]
(-)a/opac/opac-shareshelf.pl (-1 / +6 lines)
Lines 60-65 sub _init { Link Here
60
    $param->{fail_addr}   = [];
60
    $param->{fail_addr}   = [];
61
    $param->{errcode}     = check_common_errors($param);
61
    $param->{errcode}     = check_common_errors($param);
62
62
63
    # trim email address
64
    if ( $param->{addrlist} ) {
65
        $param->{addrlist} =~ s|^\s+||;
66
        $param->{addrlist} =~ s|\s+$||;
67
    }
68
63
    #get some list details
69
    #get some list details
64
    my @temp;
70
    my @temp;
65
    @temp = GetShelf( $param->{shelfnumber} ) if !$param->{errcode};
71
    @temp = GetShelf( $param->{shelfnumber} ) if !$param->{errcode};
66
- 

Return to bug 14266