Sharing: swap sequence to reduce warnings.
authorWilfried Goesgens <dothebart@citadel.org>
Sun, 1 Jul 2012 09:29:49 +0000 (11:29 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 1 Jul 2012 09:29:49 +0000 (11:29 +0200)
webcit/static/t/room/edit/shared_room_removal.html

index 4b660263597f7c04736d1e5bc861b416ca91874c..39d4e9c759238e24e8766b4b78bf647a18583f96 100644 (file)
@@ -1,12 +1,7 @@
-<script type="text/javascript">
-<?#("if we already have this room, you can't add it anymore.")>
-remove_something('ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "U")>', "hidden");
-</script>
-
 <form method="post" action="netedit">
-       <input type="hidden" name="nonce" value="<?NONCE>" />
        <tr>
-               <td><?CONTEXTSTRARR(#"GNET_IGNET_NODE")></td>
+               <td><input type="hidden" name="nonce" value="<?NONCE>" />
+                   <?CONTEXTSTRARR(#"GNET_IGNET_NODE")></td>
                <td><?CONTEXTSTRARR(#"GNET_IGNET_ROOM")></td>
                <td>
                        <input type="hidden" 
@@ -16,6 +11,10 @@ remove_something('ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "U")
                        <input type="hidden" name="tab" value="sharing" />
                        <input type="hidden" name="cmd" value="remove" />
                        <input type="submit" name="unshare_button" value="<?_("Unshare")>" />
+<script type="text/javascript">
+<?#("if we already have this room, you can't add it anymore.")>
+remove_something('ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "U")>', "hidden");
+</script>
                </td>
        </tr>
 </form>