<?php if($flow->buildin and ($action->method == 'browse')):?>
<script>
$(function()
{
    $('#extensionType option[value="extend"]').remove();
})
</script>
<?php endif;?>
<?php if($flow->buildin):?>
<script>
$(function()
{
    $('#type option[value="batch"]').remove();
    $('#position option[value="browse"]').remove();
    $('#position option[value="browseandview"]').remove();
    $('#show option[value="dropdownlist"]').remove();
    $('#show').val('direct');
})
</script>
<?php endif;?>
