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_DELETE = _("Are you sure you want to delete this rule? This cannot be undone."); |
29 |
|
28 |
$(document).ready(function() { |
30 |
$(document).ready(function() { |
|
|
31 |
$(".delete").on("click",function(){ |
32 |
return confirmDelete(MSG_CONFIRM_DELETE); |
33 |
}); |
34 |
|
29 |
$('#cap_fine_to_replacement_price').on('change', function(){ |
35 |
$('#cap_fine_to_replacement_price').on('change', function(){ |
30 |
$('#overduefinescap').prop('disabled', $(this).is(':checked') ); |
36 |
$('#overduefinescap').prop('disabled', $(this).is(':checked') ); |
31 |
}); |
37 |
}); |
Lines 253-259
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
253 |
<td>[% rule.rentaldiscount %]</td> |
259 |
<td>[% rule.rentaldiscount %]</td> |
254 |
<td class="actions"> |
260 |
<td class="actions"> |
255 |
<a href="#" class="editrule btn btn-mini"><i class="fa fa-pencil"></i> Edit</a> |
261 |
<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> |
262 |
<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> |
263 |
</td> |
258 |
</tr> |
264 |
</tr> |
259 |
[% END %] |
265 |
[% END %] |
Lines 438-444
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
438 |
</td> |
444 |
</td> |
439 |
<td class="actions"> |
445 |
<td class="actions"> |
440 |
<button type="submit" class="btn btn-mini"><i class="fa fa-save"></i> Save</button> |
446 |
<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> |
447 |
<a class="btn btn-mini delete" 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> |
448 |
</td> |
443 |
</tr> |
449 |
</tr> |
444 |
</table> |
450 |
</table> |
Lines 489-495
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
489 |
</td> |
495 |
</td> |
490 |
|
496 |
|
491 |
<td class="actions"> |
497 |
<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> |
498 |
<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> |
499 |
</td> |
494 |
</tr> |
500 |
</tr> |
495 |
[% END %] |
501 |
[% END %] |
Lines 569-575
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
569 |
[% END %] |
575 |
[% END %] |
570 |
</td> |
576 |
</td> |
571 |
<td class="actions"> |
577 |
<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> |
578 |
<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> |
579 |
</td> |
574 |
</tr> |
580 |
</tr> |
575 |
[% END %] |
581 |
[% END %] |
576 |
- |
|
|