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

Are you using any jquery plugins for multiselect and / or select???? #31

Closed
saas786 opened this issue Dec 26, 2012 · 3 comments
Closed

Comments

@saas786
Copy link

saas786 commented Dec 26, 2012

Hi,
I tried to find any jquery plugin which enhances my long select / multiple select or even grouped one's into autocomplete and better looking. I mean by this is

I have implemented this

https://github.com/harvesthq/chosen/

into your class and I liked it, this is how it done it

I added this extra check inside
public function load_scripts_styles();
[code]
//check for select, multiselect field
$this->check_field_select();
[/code]

and added
this function
[code]
public function check_field_select() {

        if ($this->has_field('select') && $this->is_edit_page()) {
            $plugin_path = $this->SelfPath;
            // Enqueu JQuery chosen library, use proper version.
            wp_enqueue_style('at-multiselect-chosen-css', $plugin_path . '/js/jquery-ui/chosen.css', array(), null);

            wp_enqueue_script('at-multiselect-chosen-js', $plugin_path . '/js/jquery-ui/chosen.jquery.min.js', array('jquery'), false, true);
        }
    }

[/code]

and also added this javascript code inside "meta-box.js"

in line
[code]
var Ed_array = Array;
jQuery(document).ready(function($) {
//added bellow code for chosen
$(".at-select").chosen();
[/code]

Hoping that you will look into this and implement it officially.

Thanks,
Syed

@bainternet
Copy link
Owner

I'm thinking about adding http://ivaynberg.github.com/select2/ witch is based on chosen

@saas786
Copy link
Author

saas786 commented Dec 27, 2012

Hmmm thats good. I would be waiting for this update eagerly ;).

Thanks,
Syed

bainternet added a commit that referenced this issue Jan 2, 2013
Added Select2 #31
Added WordPress 3.5 color picker support.
better field type checking algo.
@bainternet
Copy link
Owner

Done :)

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

No branches or pull requests

2 participants