Index: branches/1.0.x/img/validate/con-success-arrow-bottom.png =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/inc/styles.css =================================================================== diff -u -N -r15015 -r15043 --- branches/1.0.x/inc/styles.css (.../styles.css) (revision 15015) +++ branches/1.0.x/inc/styles.css (.../styles.css) (revision 15043) @@ -21,6 +21,9 @@ .clear { clear: both !important; } .fix { border: 1px solid #f00; } +.left { float:left } +.right { float: right } + /* Header *******************************************************************************/ #header { @@ -1333,8 +1336,23 @@ font-weight: bold; padding-bottom: 5px; } -.items .item .descr .optional { padding: 5px 0; } -.items .item .descr .optional .stars { padding: 0 20px 0 0; } + +.items .item .descr .optional { + padding: 15px 0 5px 0; +} + +.items .item .descr .optional .stars { + padding: 0 20px 0 0; + display: block; + float: left +} + +.items .item .descr .optional .reviews { + width: auto; + padding-top: 0px; + padding-right: 20px; + border: 0px; +} .items .item .descr .optional .comp label em { font-style: normal; text-decoration: underline; @@ -2334,6 +2352,28 @@ .formStatus.formError .formContent { background: #990000 url(@templates_base@/img/validate/con-error.png) repeat-x 0 0; } .formStatus.formError .formArrow { background: url(@templates_base@/img/validate/con-error-arrow.png) no-repeat 0 0; } +.compare-bubble { + position: relative; +} + +.compare-bubble .formStatus { + top: -25px; + left: -94px; +} + +.compare-bubble .formStatus .formContent { width: auto } + +.compare-bubble .formStatus .formArrow { + margin: 0px 0 0 20px; + position: relative; +} + +.compare-bubble .formStatus.formSuccess .formArrow { background: url(@templates_base@/img/validate/con-success-arrow-bottom.png) no-repeat 0 0; } +.compare-bubble .formStatus.formError .formArrow { background: url(@templates_base@/img/validate/con-error-arrow-bottom.png) no-repeat 0 0; } + +.compare-bubble .formStatus.formNeutral .formContent { background: #990000 url(@templates_base@/img/validate/con-neutral.png) repeat-x 0 0; } +.compare-bubble .formStatus.formNeutral .formArrow { background: url(@templates_base@/img/validate/con-neutral-arrow-bottom.png) no-repeat 0 0; } + .cart-detail.receipt .items .item-quantity .formStatus { left: 0; } .cart-detail.receipt dl.total { float: right; padding-right: 30px; } Index: branches/1.0.x/inc/js/jquery.scripts.js =================================================================== diff -u -N -r15019 -r15043 --- branches/1.0.x/inc/js/jquery.scripts.js (.../jquery.scripts.js) (revision 15019) +++ branches/1.0.x/inc/js/jquery.scripts.js (.../jquery.scripts.js) (revision 15043) @@ -147,6 +147,42 @@ ); } +function create_tooltip($input, $text, $css_class, $remove_function) { + var $tooltip = $input.next('.formStatus'), + $timer = $input.data('timer'); + + clearTimeout($timer); + + if ( $tooltip.length == 1 ) { + $tooltip.hide().remove(); + } + + var $tooltip = $(''); + + $input.after($tooltip); + + if ($remove_function === undefined) { + $remove_function = remove_tooltip; + } + + $tooltip.fadeIn( + 'slow', + function () { + $timer = setTimeout( function() { $remove_function($input); }, 2000); + $input.data('timer', $timer); + } + ); +} + +function remove_tooltip ($input) { + var $tooltip = $input.next('.formStatus'); + + $tooltip.fadeOut('slow', function() { $tooltip.remove(); }); +} + /* === DBlocks class === */ function DBlocks() { var $me = this; Index: branches/1.0.x/img/validate/con-neutral.png =================================================================== diff -u -N Binary files differ Index: branches/1.0.x/products/compare.tpl =================================================================== diff -u -N -r15019 -r15043 --- branches/1.0.x/products/compare.tpl (.../compare.tpl) (revision 15019) +++ branches/1.0.x/products/compare.tpl (.../compare.tpl) (revision 15043) @@ -7,7 +7,7 @@ - + Index: branches/1.0.x/elements/content_boxes/products.elm.tpl =================================================================== diff -u -N -r15026 -r15043 --- branches/1.0.x/elements/content_boxes/products.elm.tpl (.../products.elm.tpl) (revision 15026) +++ branches/1.0.x/elements/content_boxes/products.elm.tpl (.../products.elm.tpl) (revision 15043) @@ -29,7 +29,7 @@ \ No newline at end of file Index: branches/1.0.x/elements/product_elements.elm.tpl =================================================================== diff -u -N -r15036 -r15043 --- branches/1.0.x/elements/product_elements.elm.tpl (.../product_elements.elm.tpl) (revision 15036) +++ branches/1.0.x/elements/product_elements.elm.tpl (.../product_elements.elm.tpl) (revision 15043) @@ -23,7 +23,9 @@ Reviews ()    - + Index: branches/1.0.x/inc/js/cart_manager.js =================================================================== diff -u -N -r15019 -r15043 --- branches/1.0.x/inc/js/cart_manager.js (.../cart_manager.js) (revision 15019) +++ branches/1.0.x/inc/js/cart_manager.js (.../cart_manager.js) (revision 15043) @@ -563,41 +563,27 @@ ShopCartManager.prototype.createTooltip = function ($input, $tooltip_options) { var $me = this, - $tooltip = $input.next('.formStatus'), - $is_error = $tooltip_options.classes == 'ui-tooltip-red', - $timer = $input.data('timer'); + $is_error = $tooltip_options.classes == 'ui-tooltip-red'; - clearTimeout($timer); - - if ( $tooltip.length == 1 ) { - $tooltip.hide().remove(); - } - - $tooltip = $(''); - - $input - .after($tooltip) - .removeClass('statusSuccess statusError') - .addClass($is_error ? 'statusError' : 'statusSuccess'); - - $tooltip.fadeIn( - 'slow', - function () { - $timer = setTimeout( function() { $me.removeTooltip($input); }, 2000); - $input.data('timer', $timer); + create_tooltip( + $input, + $tooltip_options.text, + $is_error ? 'formError' : 'formSuccess', + function ($input) { + $me.removeTooltip($input); } ); - $input.focus( function() { $me.removeTooltip($input); } ); + $input + .removeClass('statusSuccess statusError') + .addClass($is_error ? 'statusError' : 'statusSuccess') + .focus( function() { $me.removeTooltip($input); } ); } ShopCartManager.prototype.removeTooltip = function ($input) { - var $tooltip = $input.next('.formStatus'); + remove_tooltip($input); + $input.removeClass('statusError').removeClass('statusSuccess'); - $tooltip.fadeOut('slow', function() { $tooltip.remove(); }); } ShopCartManager.prototype.getTooltipOptions = function ($text, $css_classes) {