Sharing: add NSYN
[citadel.git] / webcit / static / t / room / edit / shared_room_removal.html
index 331876ce0c3cd1d4a7070dbe772a6b75d677e512..9d1026ec29a897f08febfffe94e322b2cf0acf66 100644 (file)
@@ -1,23 +1,21 @@
-<script type="text/javascript">
-/*
-TODO: hide from the other table the column with this ID:
-ignet_share_node_add__<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "U")>
-*/
-</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" 
                               name="line" 
-                              value="ignet_push_share|<?CONTEXTSTRARR(#"GNET_IGNET_ROOM", "U")>|<?CONTEXTSTRARR(#"GNET_IGNET_ROOM", "U")>"
+                              value="ignet_push_share|<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "X")>|<?CONTEXTSTRARR(#"GNET_IGNET_ROOM", "X")>"
                        />
                        <input type="hidden" name="tab" value="sharing" />
                        <input type="hidden" name="cmd" value="remove" />
                        <input type="submit" name="unshare_button" value="<?_("Unshare")>" />
+                       <a href="javascript:NetworkSynchronizeRoom('<?CONTEXTSTRARR(#"GNET_IGNET_NODE", "X")>')"><img src="static/webcit_icons/essen/16x16/refresh.png" alt='<?_("resend messages to this node")>' width="16" height="16"></a>
+<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>
-