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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt (-21 / +2 lines)
Lines 550-556 Link Here
550
                                <ol>
550
                                <ol>
551
                                    <li>
551
                                    <li>
552
                                        <label class="required" for="shelfname">List name: </label>
552
                                        <label class="required" for="shelfname">List name: </label>
553
                                        <input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelf.shelfname |html %]" /></li>
553
                                        <input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelf.shelfname |html %]" required="required" class="required"/> <span class="required">Required</span></li>
554
                                    <li>
554
                                    <li>
555
                                        <label for="sortfield" >Sort this list by: </label>
555
                                        <label for="sortfield" >Sort this list by: </label>
556
                                        <select name="sortfield" id="sortfield">
556
                                        <select name="sortfield" id="sortfield">
Lines 604-610 Link Here
604
                            </fieldset>
604
                            </fieldset>
605
605
606
                            <fieldset class="action">
606
                            <fieldset class="action">
607
                                <input type="submit" onclick="Check(this.form); return false;" value="Save" class="btn" />
607
                                <input type="submit" value="Save" class="btn" />
608
                                [% IF referer == 'view' %]
608
                                [% IF referer == 'view' %]
609
                                    <a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]" class="cancel">Cancel</a>
609
                                    <a href="/cgi-bin/koha/opac-shelves.pl?op=view&amp;shelfnumber=[% shelf.shelfnumber %]" class="cancel">Cancel</a>
610
                                [% ELSE %]
610
                                [% ELSE %]
Lines 937-960 $(function() { Link Here
937
    [% END %]
937
    [% END %]
938
}); // document.ready
938
}); // document.ready
939
939
940
function Check(f) {
941
    var _alertString="";
942
    var alertString2;
943
944
    if(f.addshelf.value.length ==0){
945
        _alertString += _("- You must enter a list name") + "\n";
946
    }
947
948
    if (_alertString.length==0) {
949
        f.submit();
950
    } else {
951
        alertString2 = _("Form not submitted because of the following problem(s)");
952
        alertString2 += "\n------------------------------------------------------------------------------------\n\n";
953
        alertString2 += _alertString;
954
        alert(alertString2);
955
    }
956
}
957
958
function AdjustPerms() {
940
function AdjustPerms() {
959
    var category = $("#category").val();
941
    var category = $("#category").val();
960
    var count_perms = $("#allow_changes_from option").length;
942
    var count_perms = $("#allow_changes_from option").length;
961
- 

Return to bug 18834