Too many changes to list them all.
[Sone.git] / src / main / resources / templates / include / head.html
index 16c9391..5f0d567 100644 (file)
                                });
                                return false;
                        });
+                       $("#sone .blacklist").submit(function() {
+                               var blacklistElement = this;
+                               $.getJSON("ajax/blacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() {
+                                       $(getSoneElement(blacklistElement)).slideUp();
+                               });
+                               return false;
+                       });
+                       $("#sone .unblacklist").submit(function() {
+                               var unblacklistElement = this;
+                               $.getJSON("ajax/unblacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() {
+                                       $(getSoneElement(unblacklistElement)).slideUp();
+                               });
+                               return false;
+                       });
                });
        </script>
 
 
        <div id="main">
 
+               <%if !webInterface.core.identityManager.connected>
+                       <div id="plugin-warning">
+                               <%= Warning.PluginNotConnected.Text|l10n|html|replace needle="{link}" replacement="<a href=\"/plugins/\">"|replace needle="{/link}" replacement="</a>">
+                       </div>
+               <%/if>
+
                <div id="profile" class="<%ifnull currentSone>offline<%else>online<%/if>">
                        <a class="picture" href="index.html">&nbsp;</a>
                        <%ifnull ! currentSone>