stefangabos / Zebra_Form

A jQuery augmented PHP library for creating secure HTML forms and validating them easily
Other
98 stars 49 forks source link

Replace calls by jQuery() to ensure jQuery no-conflict compatibility #10

Closed landure closed 10 years ago

landure commented 10 years ago

When using Zebra_Form in a environment where another JavaScript library is present (mootools for example) and using jQuery no-conflict mode (no $() alias for jQuery()), Zebra_Form javascript throw an error. This pull request remplace $() calls by jQuery() to fix this issue.

landure commented 10 years ago

In zebra_form.js $() definition is handled by:

(function($) {})(jQuery);

So, it is not needed to patch the javascript file. It is only needed to change the $() call in global context.

landure commented 10 years ago

i've updated some little glitchs in the request... And i've added by mistake a raw html Control that i've just worked out. It allow to add raw html to the generated form. This is helpfull to insert fieldsets, or group zebra_form fields in tabs. Let me know your thoughs.