I believe that the code would improve by being able to have the user define if the group delete button should have an javascript confirm alert, and if yes it should be customizable.
This can be done globally by setting an wordpress javascript variable like so:
Not sure the scriptname will work, because you load your javascript inside metabox. I like to seperate it. Which might be a good idea for an future version also.
I believe that the code would improve by being able to have the user define if the group delete button should have an javascript confirm alert, and if yes it should be customizable.
This can be done globally by setting an wordpress javascript variable like so:
wp_localize_script(, , <value/array/etc>);
wp_localize_script( 'MetaBox', 'confirmation', array('delete_confirm'=>'true', 'text'=>__('sometext')) );
Not sure the scriptname will work, because you load your javascript inside metabox. I like to seperate it. Which might be a good idea for an future version also.