Lines 62-68
$(document).ready(function() {
Link Here
|
62 |
$(".toggler").toggle(); |
62 |
$(".toggler").toggle(); |
63 |
}); |
63 |
}); |
64 |
|
64 |
|
65 |
$(".save_quick_add").click(function(){ |
65 |
$("#save_quick_add").click(function(){ |
66 |
$("#quick_add_form").validate(); |
66 |
$("#quick_add_form").validate(); |
67 |
if( $("#quick_add_form").valid()){ |
67 |
if( $("#quick_add_form").valid()){ |
68 |
$('.toggle_quick_add').click(); |
68 |
$('.toggle_quick_add').click(); |
Lines 1092-1110
$(document).ready(function() {
Link Here
|
1092 |
|
1092 |
|
1093 |
[% IF quickadd && opadd && !check_member %] |
1093 |
[% IF quickadd && opadd && !check_member %] |
1094 |
<form id="quick_add_form" class="toggler"> |
1094 |
<form id="quick_add_form" class="toggler"> |
|
|
1095 |
<div id="qa_toolbar" class="btn-toolbar"> |
1096 |
<button class="btn btn-small" id="save_quick_add" name="save"><i class="fa fa-save"></i> Save</button> |
1097 |
<a class="btn btn-small" href="/cgi-bin/koha/members/member.pl"> |
1098 |
<i class="fa fa-times"></i> Cancel |
1099 |
</a> |
1100 |
</div> |
1095 |
<fieldset class="rows quick_add"><legend>Quick add</legend> |
1101 |
<fieldset class="rows quick_add"><legend>Quick add</legend> |
1096 |
<ol id="quick_add_list"> |
1102 |
<ol id="quick_add_list"> |
1097 |
</ol> |
1103 |
</ol> |
1098 |
</fieldset> |
1104 |
</fieldset> |
1099 |
<fieldset class="rows" id="qa-save"> |
|
|
1100 |
<fieldset class="action"> |
1101 |
<button type="button" class="save_quick_add" name="QA-Save"> |
1102 |
<i class="fa fa-save"></i> Save |
1103 |
</button> |
1104 |
<a class="cancel" href="/cgi-bin/koha/members/member.pl">Cancel</a> |
1105 |
</fieldset> |
1106 |
</fieldset> |
1107 |
|
1108 |
</form> |
1105 |
</form> |
1109 |
<script> |
1106 |
<script> |
1110 |
$(document).ready(function () { |
1107 |
$(document).ready(function () { |
Lines 1130-1135
$(document).ready(function() {
Link Here
|
1130 |
$("#memberentry_guarantor").clone().appendTo("#quick_add_list").css("margin",0); |
1127 |
$("#memberentry_guarantor").clone().appendTo("#quick_add_list").css("margin",0); |
1131 |
} |
1128 |
} |
1132 |
$("#quick_add_form").show(); |
1129 |
$("#quick_add_form").show(); |
|
|
1130 |
var qa_original_offset = $("#qa_toolbar").position().top; |
1131 |
var qa_additional_height = $("#qa_filters").height(); |
1132 |
$('#qa_toolbar').fixFloat({ 'originalOffset': qa_original_offset - qa_additional_height }); |
1133 |
$("#filteraction_on").on("click", function(){ |
1134 |
$(window).off('scroll'); |
1135 |
$("#qa_toolbar").css({ top: qa_original_offset }); |
1136 |
$('#qa_toolbar').fixFloat({ 'originalOffset': qa_original_offset }); |
1137 |
}); |
1138 |
$("#filteraction_off").on("click", function(){ |
1139 |
$(window).off('scroll'); |
1140 |
$("#qa_toolbar").css({ top: qa_original_offset - qa_additional_height}); |
1141 |
$('#qa_toolbar').fixFloat({ 'originalOffset': qa_original_offset - qa_additional_height }); |
1142 |
}) |
1133 |
}); |
1143 |
}); |
1134 |
</script> |
1144 |
</script> |
1135 |
[% END %] |
1145 |
[% END %] |
1136 |
- |
|
|