Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ajax response returns undefined #1

Open
pidgypost opened this issue Oct 15, 2014 · 1 comment
Open

ajax response returns undefined #1

pidgypost opened this issue Oct 15, 2014 · 1 comment

Comments

@pidgypost
Copy link

I have the latest CMB2 beta build installed through wordpress plugin directory.
I uploaded your plugin through SFTP and network activated.
I added your input type to my test file.
The input shows up fine.
I get an error when trying to search.
Line 143 throws console error saying response.data is undefined. response var outputs -1

Code screenshot http://screencast.com/t/9gSp0wljwMm
Replicate: http://screencast.com/t/5eCp9ZsB

@steacha
Copy link

steacha commented Jun 18, 2015

I am getting the exact same error and my steps are just like pidgypost's.

My code is like this:

$custom_page->add_field( array( 'name' => __( 'Find an article', 'cmb2' ), 'id' => $prefix . '_articles', 'type' => 'post_search_text', 'show_option_none' => false ) );

I am thinking there should be some options passed, but I am not sure in what format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants