[Libreoffice-commits] .: bug/bug

Loic Dachary loic at kemper.freedesktop.org
Wed Sep 21 02:00:49 PDT 2011


 bug/bug/bug.css |    4 ++--
 bug/bug/bug.js  |    5 +++++
 bug/bug/skin.js |    1 +
 3 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit e9dfac1d15387334b691cf695914cc9183174b7d
Author: Loic Dachary <loic at dachary.org>
Date:   Wed Sep 21 11:00:40 2011 +0200

    replace :last-child with .last-child for cross browser compatibility

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index be984d9..06bda0b 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -82,11 +82,11 @@ body {
     background: #FFF url('images/step-first-on.png') no-repeat top left;
 }
 
-.left .step:last-child {
+.left .step.last-child {
     background: #FFF url('images/step-last-off.png') no-repeat top left;
 }
 
-.left .step:last-child.current {
+.left .step.last-child.current {
     background: #FFF url('images/step-last-on.png') no-repeat top left;
 }
 
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c366b0a..d1116fc 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -258,7 +258,12 @@
             });
         },
 
+        compatibility: function() {
+            $('.left .step:last-child').addClass('last-child'); // cross browser compatibility
+        },
+
         main: function() {
+            $.bug.compatibility();
             $.bug.logged_in().done(function(status) {
                 if(status) {
                     $.bug.state_component();
diff --git a/bug/bug/skin.js b/bug/bug/skin.js
index 03f56f5..53407b8 100644
--- a/bug/bug/skin.js
+++ b/bug/bug/skin.js
@@ -19,6 +19,7 @@
 
   $.skin = function() {
       $('.skin').show();
+      $.bug.compatibility();
       function component() {
           $.bug.state_component();
       }


More information about the Libreoffice-commits mailing list