Roomedit - Sharing: remove lines unneeded
[citadel.git] / webcit / static / t / room / edit / shared_room_removal.html
index 2be39295bf97ea4e0216cdc85e2b78e4251f7afc..4b660263597f7c04736d1e5bc861b416ca91874c 100644 (file)
@@ -1,6 +1,8 @@
 <script type="text/javascript">
-document.getElementById("ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "U")>").style.display  = "none";
+<?#("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>
@@ -17,4 +19,3 @@ document.getElementById("ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE
                </td>
        </tr>
 </form>
-