2011-04-24, 02:02:23
blind me, you are right the admin/filebrowser.php do the same popups
maybe its just me, i prefer the more subtle lightbox popup than traditional new window popups.
it would be nice if it can be implemented when the browse button is click (both for the core admin and this plugin).
it will takes awhile for me to tweak this being a complete noob to php
thanks for the quick reply anyway!
<script type="text/javascript">
function fill_<?php echo $i; ?>(url) {
$('#post-<?php echo $key; ?>').val(url);
}
$(function() {
$('#browse-<?php echo $key; ?>').click(function(e) {
window.open('<?php echo $SITEURL; ?>plugins/i18n_customfields/browser/pagebrowser.php?func=fill_<?php echo $i; ?>&i18n=<?php echo $isI18N; ?>', 'browser', 'width=800,height=500,left=100,top=100,scrollbars=yes');
});
});
</script>
maybe its just me, i prefer the more subtle lightbox popup than traditional new window popups.
it would be nice if it can be implemented when the browse button is click (both for the core admin and this plugin).
it will takes awhile for me to tweak this being a complete noob to php
thanks for the quick reply anyway!
<script type="text/javascript">
function fill_<?php echo $i; ?>(url) {
$('#post-<?php echo $key; ?>').val(url);
}
$(function() {
$('#browse-<?php echo $key; ?>').click(function(e) {
window.open('<?php echo $SITEURL; ?>plugins/i18n_customfields/browser/pagebrowser.php?func=fill_<?php echo $i; ?>&i18n=<?php echo $isI18N; ?>', 'browser', 'width=800,height=500,left=100,top=100,scrollbars=yes');
});
});
</script>