Sharing: swap sequence to reduce warnings.
[citadel.git] / webcit / static / t / room / edit / shared_room_removal.html
index 2be39295bf97ea4e0216cdc85e2b78e4251f7afc..39d4e9c759238e24e8766b4b78bf647a18583f96 100644 (file)
@@ -1,10 +1,7 @@
-<script type="text/javascript">
-document.getElementById("ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "U")>").style.display  = "none";
-</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" 
@@ -14,7 +11,10 @@ document.getElementById("ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE
                        <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>
-