twitter bootstrap - Console-msg: "Parsley's pubsub module is deprecated; use the corresponding jQuery event method instead" -


trying display error-msgs in bootstrap-popup, found solution thedude , have adjusted event-names ps2.1:

$.listen('field:error', function (fieldinstance) {      arrerrormsg = parsleyui.geterrorsmessages(fieldinstance);     errormsg = arrerrormsg.join(';');      fieldinstance.$element         .popover('destroy')         .popover({             container: 'body',             placement: 'right',             content: errormsg         })         .popover('show');  });  $.listen('field:success', function (fieldinstance) {     fieldinstance.$element.popover('destroy'); }); 

this works wonderfully, i'm getting msg in js-console: "parsley's pubsub module deprecated; use corresponding jquery event method instead". there few hits msg in google, , i'm afraid i'm not (yet) sufficiently versed parsley understand , fix problem - appreciate make code future-proof :-)

sorry, impatient , started looking , easier expected: $.listen needs changed window.parsley.on. that's it! :-)


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -