[Web] Fix js when adding resource
[Web] Reload view and memcached when changing a resourcemaster
parent
d8e356f590
commit
1fcecd0350
|
@ -3714,7 +3714,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox'))) {
|
if ($_action != 'get' && in_array($_type, array('domain', 'alias', 'alias_domain', 'mailbox', 'resource'))) {
|
||||||
update_sogo_static_view();
|
update_sogo_static_view();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,25 @@ $(document).ready(function() {
|
||||||
// $("#active-script").closest('td').css('background-color','#b0f0a0');
|
// $("#active-script").closest('td').css('background-color','#b0f0a0');
|
||||||
// $("#inactive-script").closest('td').css('background-color','#b0f0a0');
|
// $("#inactive-script").closest('td').css('background-color','#b0f0a0');
|
||||||
// });
|
// });
|
||||||
|
$('#addResourceModal').on('shown.bs.modal', function() {
|
||||||
|
$("#multiple_bookings").val($("#multiple_bookings_select").val());
|
||||||
|
if ($("#multiple_bookings").val() == "custom") {
|
||||||
|
$("#multiple_bookings_custom_div").show();
|
||||||
|
$("#multiple_bookings").val($("#multiple_bookings_custom").val());
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$("#multiple_bookings_select").change(function() {
|
||||||
|
$("#multiple_bookings").val($("#multiple_bookings_select").val());
|
||||||
|
if ($("#multiple_bookings").val() == "custom") {
|
||||||
|
$("#multiple_bookings_custom_div").show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#multiple_bookings_custom_div").hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("#multiple_bookings_custom").bind ("change keypress keyup blur", function () {
|
||||||
|
$("#multiple_bookings").val($("#multiple_bookings_custom").val());
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -785,24 +785,3 @@ if (!isset($_SESSION['mailcow_cc_role'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- DNS info modal -->
|
</div><!-- DNS info modal -->
|
||||||
<script>
|
|
||||||
$('#addResourceModal').on('shown.bs.modal', function() {
|
|
||||||
$("#multiple_bookings").val($("#multiple_bookings_select").val());
|
|
||||||
if ($("#multiple_bookings").val() == "custom") {
|
|
||||||
$("#multiple_bookings_custom_div").show();
|
|
||||||
$("#multiple_bookings").val($("#multiple_bookings_custom").val());
|
|
||||||
}
|
|
||||||
})
|
|
||||||
$("#multiple_bookings_select").change(function() {
|
|
||||||
$("#multiple_bookings").val($("#multiple_bookings_select").val());
|
|
||||||
if ($("#multiple_bookings").val() == "custom") {
|
|
||||||
$("#multiple_bookings_custom_div").show();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$("#multiple_bookings_custom_div").hide();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$("#multiple_bookings_custom").bind ("change keypress keyup blur", function () {
|
|
||||||
$("#multiple_bookings").val($("#multiple_bookings_custom").val());
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
Loading…
Reference in New Issue