Lines 37-45
$(document).ready(function() {
Link Here
|
37 |
$("#clone_rules").on("click",function(){ |
37 |
$("#clone_rules").on("click",function(){ |
38 |
var library_dropdown = document.getElementById("branch"); |
38 |
var library_dropdown = document.getElementById("branch"); |
39 |
var selected_library = library_dropdown.options[library_dropdown.selectedIndex].value; |
39 |
var selected_library = library_dropdown.options[library_dropdown.selectedIndex].value; |
|
|
40 |
var selected_library_text = $("#branch option:selected").text(); |
41 |
var to_library = $("#tobranch option:selected").text(); |
42 |
var MSG_CONFIRM_CLONE; |
40 |
if (selected_library === "*") { |
43 |
if (selected_library === "*") { |
41 |
var to_library = $("#tobranch option:selected").text(); |
44 |
MSG_CONFIRM_CLONE = _("Are you sure you want to clone this standard rule to %s library? This will override the existing rules in this library.").format(to_library); |
42 |
var MSG_CONFIRM_CLONE = _("Are you sure you want to clone this standard rule to %s library? This will override the existing rules in this library.").format(to_library); |
45 |
return confirmClone(MSG_CONFIRM_CLONE); |
|
|
46 |
} else { |
47 |
MSG_CONFIRM_CLONE = _("Are you sure you want to clone this circulation and fine rule from %s to %s library? This will override the existing rules in this library.").format(selected_library_text, to_library); |
43 |
return confirmClone(MSG_CONFIRM_CLONE); |
48 |
return confirmClone(MSG_CONFIRM_CLONE); |
44 |
} |
49 |
} |
45 |
}); |
50 |
}); |
46 |
- |
|
|