remove scripts from widget forms, newer wordpress version strip them on DOM copy
This commit is contained in:
parent
9c93d00ff6
commit
e1329e5f53
@ -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 }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user