backport stable branch changesets
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 28 Jul 2009 21:14:47 +0200
changeset 2538 6f8ffaa2a700
parent 2536 88595be9087d (current diff)
parent 2537 73c83c14dd2c (diff)
child 2539 0f26a76b0348
backport stable branch changesets
web/data/cubicweb.edition.js
web/views/editforms.py
--- a/web/data/cubicweb.compat.js	Tue Jul 28 20:38:53 2009 +0200
+++ b/web/data/cubicweb.compat.js	Tue Jul 28 21:14:47 2009 +0200
@@ -247,9 +247,10 @@
   if ('name' in params){
     try {
       var node = document.createElement('<iframe name="'+params['name']+'">');
-      }catch (ex) {
-	 var node = document.createElement('iframe');
-      }
+    } catch (ex) {
+      var node = document.createElement('iframe');
+      node.id = node.name = params.name;
+    }
   }
   else{
     var node = document.createElement('iframe');