META-INF.resources.primefaces.captcha.captcha.js Maven / Gradle / Ivy
/**
* PrimeFaces Captcha Widget
*/
PrimeFaces.widget.Captcha = PrimeFaces.widget.BaseWidget.extend({
init: function(cfg) {
this._super(cfg);
this.cfg.language = this.cfg.language||'en';
var $this = this;
window[this.cfg.widgetVar + '_initCallback'] = function() {
$this.render();
};
$(document.body).append('