Coding style cleanup for r56924; also copypaste main-ltr.css modifications to main...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 28 Sep 2009 10:09:12 +0000 (10:09 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 28 Sep 2009 10:09:12 +0000 (10:09 +0000)
skins/common/ajaxwatch.js
skins/vector/main-ltr.css
skins/vector/main-rtl.css

index 2e1db0d..ff9d785 100644 (file)
@@ -24,29 +24,29 @@ wgAjaxWatch.watchLinks = []; // "watch"/"unwatch" links
 wgAjaxWatch.iconMode = false; // new icon driven functionality 
 wgAjaxWatch.imgBasePath = ""; // base img path derived from icons on load
 
-wgAjaxWatch.setLinkText = function(newText) {
-  if( wgAjaxWatch.iconMode ) {
-    for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) {
-               wgAjaxWatch.watchLinks[i].firstChild.alt = newText;
-               if( newText==wgAjaxWatch.watchingMsg || newText==wgAjaxWatch.unwatchingMsg ) {
-                 wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath
+wgAjaxWatch.setLinkText = function( newText ) {
+       if( wgAjaxWatch.iconMode ) {
+               for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) {
+                       wgAjaxWatch.watchLinks[i].firstChild.alt = newText;
+                       if( newText == wgAjaxWatch.watchingMsg || newText == wgAjaxWatch.unwatchingMsg ) {
+                               wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath
                                        + "/common/images/spinner.gif";
-               } else if( newText==wgAjaxWatch.watchMsg ) {
-                 wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath
+                       } else if( newText==wgAjaxWatch.watchMsg ) {
+                               wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath
                                        + "/vector/images/watch_off.gif";
-               } else if( newText==wgAjaxWatch.unwatchMsg ) {
-                 wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath
+                       } else if( newText==wgAjaxWatch.unwatchMsg ) {
+                               wgAjaxWatch.watchLinks[i].firstChild.src = wgAjaxWatch.imgBasePath
                                        + "/vector/images/watch_on.gif";
-               }
-       }
-  } else{
-    for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) {
-               changeText( wgAjaxWatch.watchLinks[i], newText );
-       }
-  }
+                       }
+               }
+       } else {
+               for ( i = 0; i < wgAjaxWatch.watchLinks.length; i++ ) {
+                       changeText( wgAjaxWatch.watchLinks[i], newText );
+               }
+       }
 };
 
-wgAjaxWatch.setLinkID = function(newId) {
+wgAjaxWatch.setLinkID = function( newId ) {
        // We can only set the first one
        wgAjaxWatch.watchLinks[0].parentNode.setAttribute( 'id', newId );
        akeytt(newId); // update tooltips for Monobook
@@ -153,25 +153,25 @@ wgAjaxWatch.onLoad = function() {
        }
        
        // If we're using the icon, add rollover affects
-       try{
-         if( el1.firstChild.firstChild.tagName.match( /img/i ) ) {
+       try {
+               if( el1.firstChild.firstChild.tagName.match( /img/i ) ) {
                        wgAjaxWatch.iconMode = true;
-         wgAjaxWatch.imgBasePath = el1.firstChild.firstChild.src
+                       wgAjaxWatch.imgBasePath = el1.firstChild.firstChild.src
                                .replace( /\/vector\/images\/watch_(off|on).gif/, "" );
-         el1.firstChild.onmouseover = function( e ) {
-           if ( !wgAjaxWatch.inprogress )
-               this.firstChild.src = wgAjaxWatch.imgBasePath
-                       + "/vector/images/watch_over.gif";
-         }
-         el1.firstChild.onmouseout = function( e ) {
-           if ( !wgAjaxWatch.inprogress )
-               this.firstChild.src = wgAjaxWatch.imgBasePath
-                       + "/vector/images/watch_" + ( wgAjaxWatch.watching ?
-                               "on.gif" : "off.gif" );
-         }
-       }
+                       el1.firstChild.onmouseover = function( e ) {
+                               if ( !wgAjaxWatch.inprogress )
+                                       this.firstChild.src = wgAjaxWatch.imgBasePath
+                                               + "/vector/images/watch_over.gif";
+                       }
+                       el1.firstChild.onmouseout = function( e ) {
+                               if ( !wgAjaxWatch.inprogress )
+                                       this.firstChild.src = wgAjaxWatch.imgBasePath
+                                               + "/vector/images/watch_" + ( wgAjaxWatch.watching ?
+                                                       "on.gif" : "off.gif" );
+                       }
+               }
        } catch( e ) {
-         // not using the icon 
+               // not using the icon 
        }
 
 
index 2b27cfd..a450c65 100644 (file)
@@ -1054,48 +1054,48 @@ div#bodyContent {
 
 /* Babaco color scheme */
 /* Still working on this. Needs incorporated above once it's closer to final */
-body{
-  background-color:#f9f9f9;
-  color:#000000;
+body {
+       background-color: #f9f9f9;
+       color: #000000;
 }
-a{
-  color:#003cb3;
+a {
+       color: #003cb3;
 }
-a.new{
-  color:#990000;
+a.new {
+       color: #990000;
 }
 
 a:visited,
 div.vectorTabs li.selected a:visited div.vectorTabs li.selected a:visited span {
-  color:#260e9c;
+       color: #260e9c;
 }
 
 html .thumbimage,
-#toc, .toc, .mw-warning, div.thumbinner{
-  border-color:#c0c0c0;
-  background-color:#f0f0f0;
+#toc, .toc, .mw-warning, div.thumbinner {
+       border-color: #c0c0c0;
+       background-color: #f0f0f0;
 }
 
-h1, h2, h3, h4, h5, h6{
-  border-color:#8d8d8d;
+h1, h2, h3, h4, h5, h6 {
+       border-color: #8d8d8d;
 }
 
 
 /* Watch/Unwatch Icon Styling */
 #ca-unwatch,
-#ca-watch{
-  background-image:none;
-  background-color:#ffffff;
+#ca-watch {
+       background-image: none;
+       background-color: #ffffff;
 }
 #ca-unwatch a,
-#ca-watch a{
-  outline:none;
+#ca-watch a {
+       outline: none;
 }
 #ca-unwatch a img,
-#ca-watch a img{
-  padding-top:1.35em;
-  display:block;
-  font-size:0.8em;
-  max-height:14px;
-  max-width:14px;
+#ca-watch a img {
+       padding-top: 1.35em;
+       display: block;
+       font-size: 0.8em;
+       max-height: 14px;
+       max-width: 14px;
 }
\ No newline at end of file
index 69b3de2..5594f6e 100644 (file)
@@ -1049,4 +1049,51 @@ div#bodyContent {
        line-height: 1.5em;
 }
 
-       
\ No newline at end of file
+
+/* Babaco color scheme */
+/* Still working on this. Needs incorporated above once it's closer to final */
+body {
+       background-color: #f9f9f9;
+       color: #000000;
+}
+a {
+       color: #003cb3;
+}
+a.new {
+       color: #990000;
+}
+
+a:visited,
+div.vectorTabs li.selected a:visited div.vectorTabs li.selected a:visited span {
+       color: #260e9c;
+}
+
+html .thumbimage,
+#toc, .toc, .mw-warning, div.thumbinner {
+       border-color: #c0c0c0;
+       background-color: #f0f0f0;
+}
+
+h1, h2, h3, h4, h5, h6 {
+       border-color: #8d8d8d;
+}
+
+
+/* Watch/Unwatch Icon Styling */
+#ca-unwatch,
+#ca-watch {
+       background-image: none;
+       background-color: #ffffff;
+}
+#ca-unwatch a,
+#ca-watch a {
+       outline: none;
+}
+#ca-unwatch a img,
+#ca-watch a img {
+       padding-top: 1.35em;
+       display: block;
+       font-size: 0.8em;
+       max-height: 14px;
+       max-width: 14px;
+}
\ No newline at end of file