Lines 25-31
function clear_edit(){
Link Here
|
25 |
$(edit_row).find("td:last input[name='clear']").remove(); |
25 |
$(edit_row).find("td:last input[name='clear']").remove(); |
26 |
} |
26 |
} |
27 |
|
27 |
|
|
|
28 |
var MSG_CONFIRM_UNSET = _("Are you sure you want to unset this rule?"); |
29 |
var MSG_CONFIRM_DELETE = _("Are you sure you want to delete this rule? This cannot be undone."); |
30 |
|
31 |
function confirmUnsetDel(message) { |
32 |
return (confirm(message) ? true : false); |
33 |
} |
34 |
|
28 |
$(document).ready(function() { |
35 |
$(document).ready(function() { |
|
|
36 |
$("#unset").on("click",function(){ |
37 |
return confirmUnsetDel(MSG_CONFIRM_UNSET); |
38 |
}); |
39 |
|
40 |
$(".delete").on("click",function(){ |
41 |
return confirmUnsetDel(MSG_CONFIRM_DELETE); |
42 |
}); |
43 |
|
29 |
$('#cap_fine_to_replacement_price').on('change', function(){ |
44 |
$('#cap_fine_to_replacement_price').on('change', function(){ |
30 |
$('#overduefinescap').prop('disabled', $(this).is(':checked') ); |
45 |
$('#overduefinescap').prop('disabled', $(this).is(':checked') ); |
31 |
}); |
46 |
}); |
Lines 253-259
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
253 |
<td>[% rule.rentaldiscount %]</td> |
268 |
<td>[% rule.rentaldiscount %]</td> |
254 |
<td class="actions"> |
269 |
<td class="actions"> |
255 |
<a href="#" class="editrule btn btn-mini"><i class="fa fa-pencil"></i> Edit</a> |
270 |
<a href="#" class="editrule btn btn-mini"><i class="fa fa-pencil"></i> Edit</a> |
256 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
271 |
<a class="btn btn-mini delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&itemtype=[% rule.itemtype %]&categorycode=[% rule.categorycode %]&branch=[% rule.current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
257 |
</td> |
272 |
</td> |
258 |
</tr> |
273 |
</tr> |
259 |
[% END %] |
274 |
[% END %] |
Lines 438-444
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
438 |
</td> |
453 |
</td> |
439 |
<td class="actions"> |
454 |
<td class="actions"> |
440 |
<button type="submit" class="btn btn-mini"><i class="fa fa-save"></i> Save</button> |
455 |
<button type="submit" class="btn btn-mini"><i class="fa fa-save"></i> Save</button> |
441 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=*&branch=[% current_branch %]"><i class="fa fa-undo"></i> Unset</a> |
456 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=*&branch=[% current_branch %]" id="unset"><i class="fa fa-undo"></i> Unset</a> |
442 |
</td> |
457 |
</td> |
443 |
</tr> |
458 |
</tr> |
444 |
</table> |
459 |
</table> |
Lines 489-495
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
489 |
</td> |
504 |
</td> |
490 |
|
505 |
|
491 |
<td class="actions"> |
506 |
<td class="actions"> |
492 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=[% branch_cat_rule_loo.categorycode %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
507 |
<a class="btn btn-mini delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-cat&categorycode=[% branch_cat_rule_loo.categorycode %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
493 |
</td> |
508 |
</td> |
494 |
</tr> |
509 |
</tr> |
495 |
[% END %] |
510 |
[% END %] |
Lines 569-575
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
569 |
[% END %] |
584 |
[% END %] |
570 |
</td> |
585 |
</td> |
571 |
<td class="actions"> |
586 |
<td class="actions"> |
572 |
<a class="btn btn-mini" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-item&itemtype=[% branch_item_rule_loo.itemtype %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
587 |
<a class="btn btn-mini delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete-branch-item&itemtype=[% branch_item_rule_loo.itemtype %]&branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a> |
573 |
</td> |
588 |
</td> |
574 |
</tr> |
589 |
</tr> |
575 |
[% END %] |
590 |
[% END %] |
576 |
- |
|
|