]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Make channel, nick and auth links less obvious.
authorChris Porter <redacted>
Sat, 8 Nov 2008 18:29:34 +0000 (18:29 +0000)
committerChris Porter <redacted>
Sat, 8 Nov 2008 18:29:34 +0000 (18:29 +0000)
js/ui/baseui.js
js/ui/url.js
static/css/qui.css

index 55135a547f06307285216965b260caad144da133..a563b6367298679ea25c6586e49437a733595052 100644 (file)
@@ -216,7 +216,7 @@ qwebirc.ui.QuakeNetUI = new Class({
   Extends: qwebirc.ui.StandardUI,
   urlDispatcher: function(name, window) {
     if(name == "qwhois") {
-      return ["a", function(auth) {
+      return ["span", function(auth) {
         this.client.exec("/MSG Q whois #" + auth);
       }.bind(window)];
     }
index 3a841126f263750529043741335aec11b371490e..f8b70e660bcd72d1bedb34aa89e299bb682a6d0a 100644 (file)
@@ -30,8 +30,9 @@ qwebirc.ui.urlificate = function(element, text, execfn, cmdfn, window) {
     var newtext = text.replace(punct_re, "");
     var punct = text.substring(newtext.length);
 
-    var a = new Element("a");
+    var a = new Element("span");
     a.href = "#";
+    a.addClass("hyperlink-channel");
     a.addEvent("click", function(e) {
       new Event(e).stop();
       execfn("/JOIN " + newtext);
index 52019ba5ce158d82e8d37f934526db5fd42dfa50..effa62f2d0414f6afbe666efa3b324c7323156b9 100644 (file)
@@ -249,9 +249,13 @@ div#noscript {
   border-top: 0;
 }
 
-.qwebirc-qui .hyperlink-whois {
-       cursor: pointer;
-       cursor: hand;
+.qwebirc-qui .hyperlink-whois, .hyperlink-qwhois, .hyperlink-channel {
+  cursor: pointer;
+  cursor: hand;
+}
+
+.qwebirc-qui .hyperlink-whois:hover, .hyperlink-qwhois:hover, .hyperlink-channel:hover {
+  text-decoration: underline;
 }
 
 .qwebirc-qui div.embeddedwizard {