Form Widget validation

- reorganized jquery validation lib to include languages
- added Widget initializer class
- fixed cache method in initializer
- added widget front JS to validate and submit (ajax / post)
This commit is contained in:
Jonathan Labreuille
2015-08-13 12:26:11 +02:00
parent bbe4d1d853
commit 6b46ef7fea
10 changed files with 189 additions and 11 deletions

View File

@ -57,8 +57,7 @@ class Initializer {
}
function setupWidget() {
add_action('widgets_init', function() {
register_widget('\MailPoet\Form\Widget');
});
$widget = new Widget();
$widget->init();
}
}