Fixed Issue when creating a Pop from /Network with network_id that the network is not selected
This commit is contained in:
@@ -184,6 +184,17 @@ if (isset($_GET['returnto']) && $_GET['returnto'] == "pop-detail") {
|
||||
$(this).off('wheel.disableScroll')
|
||||
});
|
||||
$(".select2").select2();
|
||||
|
||||
|
||||
// network_id // owner_id
|
||||
// if get parameter network_id is set, select it if found
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const network_id = urlParams.get('network_id');
|
||||
|
||||
if(network_id) {
|
||||
console.log("network_id", network_id);
|
||||
$("#owner_id").val(network_id).trigger('change');
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php include(realpath(dirname(__FILE__) . "/../../$mfLayoutPackage") . "/footer.php"); ?>
|
||||
Reference in New Issue
Block a user