# bbpress/2.6.17/includes/admin/assets/js/replies.js

bbPress, version 2.6.17. 17 lines.

- Page: https://pluginprobe.com/plugins/bbpress/2.6.17/code/includes/admin/assets/js/replies.js
- Raw: https://pluginprobe.com/plugins/bbpress/2.6.17/raw/includes/admin/assets/js/replies.js
- Modified: 2017-06-12T22:10:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bbpress/2.6.17/code/includes/admin/assets/js/replies.js#L10-L20`.

```javascript
jQuery( document ).ready(function() {

	jQuery( '#misc-publishing-actions' ).find( '.misc-pub-section' ).first().remove();
	jQuery( '#save-action' ).remove();

	var bbp_topic_id = jQuery( '#bbp_topic_id' );

	bbp_topic_id.suggest(
		bbp_topic_id.data( 'ajax-url' ),
		{
			onSelect: function() {
				var value = this.value;
				bbp_topic_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
			}
		}
	);
} );
```
