Skip to:
Content

bbPress.org

Opened 14 years ago

Closed 14 years ago

#2046 closed defect (bug) (duplicate)

JS Error: suggest has no method

Reported by: sc0ttkclark Owned by:
Priority: normal Milestone: 2.2.2
Component: General - Administration Version: 2.2.1
Severity: blocker Keywords:
Cc: lol@…

Description

I’m getting this on all my sites that have upgraded to 2.2.x (tested on 2.2.1 too). It causes JS to fail, which then breaks every other page of the admin area that uses JS.

Uncaught TypeError: Object [object Object] has no method 'suggest'

This relates to this part of the code added to every page of the WP Admin area:

<script type="text/javascript">
			jQuery(document).ready(function() {

				var bbp_topic_id = jQuery( '#bbp_topic_id' );

				bbp_topic_id.suggest( ajaxurl + '?action=bbp_suggest_topic', {
					onSelect: function() {
						var value = this.value;
						bbp_topic_id.val( value.substr( 0, value.indexOf( ' ' ) ) );
					}
				} );
			});
		</script>

Change History (3)

#1 @sc0ttkclark
14 years ago

  • Cc lol@… added
  • Version 2.12.1.2

I'm running WP 3.4.2 too

#2 @sc0ttkclark
14 years ago

  • Version 2.1.22.2.1

#3 @sc0ttkclark
14 years ago

  • Resolutionduplicate
  • Status newclosed

Duplicate of #1990

Note: See TracTickets for help on using tickets.