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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-2 / +2 lines)
Lines 246-256 fieldset.rows table { clear: none; margin: 0; } Link Here
246
                                </li>
246
                                </li>
247
                                <li>
247
                                <li>
248
                                     <label class="widelabel" for="staffdisplaycount">Number of issues to display to staff: </label>
248
                                     <label class="widelabel" for="staffdisplaycount">Number of issues to display to staff: </label>
249
                                     <input type="text" name="staffdisplaycount" id="staffdisplaycount" value="[% staffdisplaycount | html %]" size="4"/>
249
                                     <input type="text" name="staffdisplaycount" id="staffdisplaycount" value="[% staffdisplaycount | html %]" inputmode="numeric" pattern="[0-9]*"  size="4"/>
250
                                 </li>
250
                                 </li>
251
                                 <li>
251
                                 <li>
252
                                    <label class="widelabel" for="opacdisplaycount">Number of issues to display to the public: </label>
252
                                    <label class="widelabel" for="opacdisplaycount">Number of issues to display to the public: </label>
253
                                    <input type="text" name="opacdisplaycount" id="opacdisplaycount" value="[% opacdisplaycount | html %]" size="4"/>
253
                                    <input type="text" name="opacdisplaycount" id="opacdisplaycount" value="[% opacdisplaycount | html %]" inputmode="numeric" pattern="[0-9]*"  size="4"/>
254
                                </li>
254
                                </li>
255
                            </ol>
255
                            </ol>
256
                        </fieldset>
256
                        </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/js/subscription-add.js (-3 / +15 lines)
Lines 68-75 function Check_page1() { Link Here
68
68
69
    var bib_exists = $("input[name='title']").val().length;
69
    var bib_exists = $("input[name='title']").val().length;
70
70
71
    if (!bib_exists) alert( __("Bibliographic record does not exist!") );
71
    if (!bib_exists){
72
    return bib_exists;
72
        alert( __("Bibliographic record does not exist!") );
73
        return false;
74
    }
75
76
    if( isNaN( $("#staffdisplaycount").val() ) ){
77
        alert( __("Number of issues to display to staff must be a number") );
78
        return false;
79
    }
80
    if( isNaN( $("#opacdisplaycount").val() ) ){
81
        alert( __("Number of issues to display to the public must be a number") );
82
        return false;
83
    } else {
84
        return true;
85
    }
73
}
86
}
74
87
75
function Check_page2(){
88
function Check_page2(){
76
- 

Return to bug 24010