web/data/cubicweb.edition.js
branchstable
changeset 4421 709bc9ea6d1e
parent 4271 dfee17fa363f
child 4436 294e084f1263
equal deleted inserted replaced
4420:a9a8628a1a87 4421:709bc9ea6d1e
   422  * NOTE3: there is a XHTML module allowing iframe elements but there
   422  * NOTE3: there is a XHTML module allowing iframe elements but there
   423  *        is still the problem of the form's `target` attribute
   423  *        is still the problem of the form's `target` attribute
   424  */
   424  */
   425 function setFormsTarget(node) {
   425 function setFormsTarget(node) {
   426     var $node = jQuery(node || document.body);
   426     var $node = jQuery(node || document.body);
   427     $node.find('form.entityForm').each(function () {
   427     $node.find('form').each(function () {
   428 	var form = jQuery(this);
   428 	var form = jQuery(this);
   429 	var target = form.attr('cubicweb:target');
   429 	var target = form.attr('cubicweb:target');
   430 	if (target) {
   430 	if (target) {
   431 	    form.attr('target', target);
   431 	    form.attr('target', target);
   432 	    /* do not use display: none because some browsers ignore iframe
   432 	    /* do not use display: none because some browsers ignore iframe