remove scripts from widget forms, newer wordpress version strip them on DOM copy

This commit is contained in:
John Bintz 2010-01-24 22:35:32 -05:00
parent 9c93d00ff6
commit e1329e5f53

View File

@ -111,20 +111,6 @@ class ComicPressBookmarkWidget extends WP_Widget {
?>
</p></div>
<?php } ?>
<script type="text/javascript">
(function($) {
var wrapper = '<?php echo $this->get_field_id('wrapper') ?>';
var radios = $('#' + wrapper + ' input[type=radio]');
var show = function() {
radios.each(function() {
$('#' + this.id + '-options')[this.checked ? 'show' : 'hide']();
});
};
radios.click(show);
show();
}(jQuery));
</script>
</div>
<?php }