From: Sam Reed Date: Mon, 23 Jan 2012 16:59:32 +0000 (+0000) Subject: Revert r108987 to copy properly X-Git-Tag: 1.31.0-rc.0~25118 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=0464ee0045189375959c2a5de3a69c6941bd7730;p=lhc%2Fweb%2Fwiklou.git Revert r108987 to copy properly --- diff --git a/resources/Resources.php b/resources/Resources.php index 1830ba9fa3..30a8c46ce1 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -82,10 +82,6 @@ return array( 'jquery.appear' => array( 'scripts' => 'resources/jquery/jquery.appear.js', ), - 'jquery.arrowSteps' => array( - 'scripts' => 'resources/jquery/jquery.arrowSteps.js', - 'styles' => 'resources/jquery/jquery.arrowSteps.css', - ), 'jquery.async' => array( 'scripts' => 'resources/jquery/jquery.async.js', ), diff --git a/resources/jquery/images/jquery.arrowSteps.divider-ltr.png b/resources/jquery/images/jquery.arrowSteps.divider-ltr.png deleted file mode 100644 index 0de1ae9cb9..0000000000 Binary files a/resources/jquery/images/jquery.arrowSteps.divider-ltr.png and /dev/null differ diff --git a/resources/jquery/images/jquery.arrowSteps.divider-rtl.png b/resources/jquery/images/jquery.arrowSteps.divider-rtl.png deleted file mode 100644 index f3f065199c..0000000000 Binary files a/resources/jquery/images/jquery.arrowSteps.divider-rtl.png and /dev/null differ diff --git a/resources/jquery/images/jquery.arrowSteps.head-ltr.png b/resources/jquery/images/jquery.arrowSteps.head-ltr.png deleted file mode 100644 index dbcc71b9d4..0000000000 Binary files a/resources/jquery/images/jquery.arrowSteps.head-ltr.png and /dev/null differ diff --git a/resources/jquery/images/jquery.arrowSteps.head-rtl.png b/resources/jquery/images/jquery.arrowSteps.head-rtl.png deleted file mode 100644 index 760798bf7d..0000000000 Binary files a/resources/jquery/images/jquery.arrowSteps.head-rtl.png and /dev/null differ diff --git a/resources/jquery/images/jquery.arrowSteps.tail-ltr.png b/resources/jquery/images/jquery.arrowSteps.tail-ltr.png deleted file mode 100644 index 61340fa8d8..0000000000 Binary files a/resources/jquery/images/jquery.arrowSteps.tail-ltr.png and /dev/null differ diff --git a/resources/jquery/images/jquery.arrowSteps.tail-rtl.png b/resources/jquery/images/jquery.arrowSteps.tail-rtl.png deleted file mode 100644 index dd2d8e8a31..0000000000 Binary files a/resources/jquery/images/jquery.arrowSteps.tail-rtl.png and /dev/null differ diff --git a/resources/jquery/jquery.arrowSteps.css b/resources/jquery/jquery.arrowSteps.css deleted file mode 100644 index f8f6e9515f..0000000000 --- a/resources/jquery/jquery.arrowSteps.css +++ /dev/null @@ -1,45 +0,0 @@ -.arrowSteps { - list-style-type: none; - list-style-image: none; - border: 1px solid #666666; - position: relative; -} - -.arrowSteps li { - float: left; - padding: 0px; - margin: 0px; - border: 0 none; -} - -.arrowSteps li div { - padding: 0.5em; - text-align: center; - white-space: nowrap; - overflow: hidden; -} - -.arrowSteps li.arrow div { - /* @embed */ - background: url(images/jquery.arrowSteps.divider-ltr.png) no-repeat right center; -} - -/* applied to the element preceding the highlighted step */ -.arrowSteps li.arrow.tail div { - /* @embed */ - background: url(images/jquery.arrowSteps.tail-ltr.png) no-repeat right center; -} - -/* this applies to all highlighted, including the last */ -.arrowSteps li.head div { - /* @embed */ - background: url(images/jquery.arrowSteps.head-ltr.png) no-repeat left center; - font-weight: bold; -} - -/* this applies to all highlighted arrows except the last */ -.arrowSteps li.arrow.head div { - /* TODO: eliminate duplication of jquery.arrowSteps.head.png embedding */ - /* @embed */ - background: url(images/jquery.arrowSteps.head-ltr.png) no-repeat right center; -} diff --git a/resources/jquery/jquery.arrowSteps.js b/resources/jquery/jquery.arrowSteps.js deleted file mode 100644 index f9637545dc..0000000000 --- a/resources/jquery/jquery.arrowSteps.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * jQuery arrowSteps plugin - * Copyright Neil Kandalgaonkar, 2010 - * - * This work is licensed under the terms of the GNU General Public License, - * version 2 or later. - * (see http://www.fsf.org/licensing/licenses/gpl.html). - * Derivative works and later versions of the code must be free software - * licensed under the same or a compatible license. - * - * - * DESCRIPTION - * - * Show users their progress through a series of steps, via a row of items that fit - * together like arrows. One item can be highlighted at a time. - * - * - * SYNOPSIS - * - * - * - * - * - */ - -( function( $j ) { - $j.fn.arrowSteps = function() { - this.addClass( 'arrowSteps' ); - var $steps = this.find( 'li' ); - - var width = parseInt( 100 / $steps.length, 10 ); - $steps.css( 'width', width + '%' ); - - // every step except the last one has an arrow at the right hand side. Also add in the padding - // for the calculated arrow width. - var arrowWidth = parseInt( this.outerHeight(), 10 ); - $steps.filter( ':not(:last-child)' ).addClass( 'arrow' ) - .find( 'div' ).css( 'padding-right', arrowWidth.toString() + 'px' ); - - this.data( 'arrowSteps', $steps ); - return this; - }; - - $j.fn.arrowStepsHighlight = function( selector ) { - var $steps = this.data( 'arrowSteps' ); - var $previous; - $j.each( $steps, function( i, step ) { - var $step = $j( step ); - if ( $step.is( selector ) ) { - if ($previous) { - $previous.addClass( 'tail' ); - } - $step.addClass( 'head' ); - } else { - $step.removeClass( 'head tail lasthead' ); - } - $previous = $step; - } ); - }; - -} )( jQuery );