equal
deleted
inserted
replaced
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 |