little js bug

This commit is contained in:
John Bintz 2009-10-14 21:08:34 -04:00
parent 71f974d2cf
commit 09565a8f0a

View File

@ -106,13 +106,15 @@
$('wdts-sample-transcript-holder').insert(iframe);
};
$('wdts-filters-to-use').observe('change', load_sample_transcript);
$('refresh-filter-preview').observe('click', function(e) {
Event.stop(e);
load_sample_transcript();
});
if ($('wdts-filters-to-user')) {
$('wdts-filters-to-use').observe('change', load_sample_transcript);
$('refresh-filter-preview').observe('click', function(e) {
Event.stop(e);
load_sample_transcript();
});
Event.observe(window, 'load', load_sample_transcript);
Event.observe(window, 'load', load_sample_transcript);
}
<?php if (isset($_POST['wdts']['return_page'])) { ?>
make_active($('<?php echo str_replace('-page-', '-tab-', $_POST['wdts']['return_page']) ?>'));