You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-07-05 00:49:29 +02:00
34 lines
836 B
JavaScript
34 lines
836 B
JavaScript
![]() |
$(document).ready(function() {
|
||
|
if ($("#webmail").val() == 'none') {
|
||
|
$("#webmail_path").hide();
|
||
|
$("#webmail_path").attr("value", "");
|
||
|
} else {
|
||
|
$("#webmail_path").show();
|
||
|
$("#webmail_path").attr("value", "/webmail");
|
||
|
}
|
||
|
$("#webmail").click(function() {
|
||
|
if (this.value == 'none') {
|
||
|
$("#webmail_path").hide();
|
||
|
$("#webmail_path").attr("value", "");
|
||
|
} else {
|
||
|
$("#webmail_path").show();
|
||
|
$("#webmail_path").attr("value", "/webmail");
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
$(document).ready(function() {
|
||
|
if ($('#admin').prop('checked')) {
|
||
|
$("#admin_path").show();
|
||
|
$("#admin_path").attr("value", "/admin");
|
||
|
}
|
||
|
$("#admin").change(function() {
|
||
|
if ($(this).is(":checked")) {
|
||
|
$("#admin_path").show();
|
||
|
$("#admin_path").attr("value", "/admin");
|
||
|
} else {
|
||
|
$("#admin_path").hide();
|
||
|
$("#admin_path").attr("value", "");
|
||
|
}
|
||
|
});
|
||
|
});
|