]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/panes/connect.js
Add CUSTOM_CSS option and allow it to interact with LOGO_URL
[irc/quakenet/qwebirc.git] / js / ui / panes / connect.js
index 2504dc984fd57538adbe98ef1e9cdca6d3b5fd2b..02d1b5a72d734af03f35c9b45360811f2d94b1a5 100644 (file)
@@ -23,9 +23,11 @@ qwebirc.ui.ConnectPane = new Class({
       exec("[name=" + box + "box]", util.setVisible(true));
 
       if(!autoConnect) {
-        if(uiOptions.logoURL) {
+        if($defined(uiOptions.logoURL)) {
           var logoBar = parent.getElement("[class=bar-logo]");
-          logoBar.setAttribute("style", "background: url(" + uiOptions.logoURL + ") no-repeat center top; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + uiOptions.logoURL + "',sizingMethod='crop');");
+          if(uiOptions.logoURL)
+            logoBar.setAttribute("style", "background: url(" + uiOptions.logoURL + ") no-repeat center top; _filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + uiOptions.logoURL + "',sizingMethod='crop');");
+
           util.makeVisible(parent.getElement("[name=loginheader]"));
         } else {
           util.makeVisible(parent.getElement("[name=nologologinheader]"));