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