From 104efccd3ba976118c7398f0549abc7b90b44bff Mon Sep 17 00:00:00 2001 From: Chakib Benziane Date: Thu, 29 Mar 2012 15:44:31 +0200 Subject: [PATCH] alignment english mispell --- index.html | 8 ++++---- js/bootstrap-magic-button.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 575023e..67511e2 100644 --- a/index.html +++ b/index.html @@ -188,7 +188,7 @@

<button class="magicBtn icon"><i class="icon-search"></i></button>
<button class="magicBtn icon"><i class="icon-user"></i></button>
-
$('.icon').magicBtn({hover: true, alignement: 'top'});
$('.icon').magicBtn('show');
+
$('.icon').magicBtn({hover: true, alignment: 'top'});
$('.icon').magicBtn('show');
@@ -223,7 +223,7 @@ - alignement + alignment string center start showing buttons from center, 1 in middle, even on ones top and odd ones on bottom @@ -276,13 +276,13 @@ $('.hover').magicBtn({hover: true}); $('.hover').magicBtn('show'); - $('.icon').magicBtn({hover: true, alignement: 'top'}); + $('.icon').magicBtn({hover: true, alignment: 'top'}); $('.icon').magicBtn('show'); $('.well .magicBtn').magicBtn('show'); - $('.hero').magicBtn({hover: true, alignement: 'top'}); + $('.hero').magicBtn({hover: true, alignment: 'top'}); $('.hero-unit').hoverIntent({ over: function () { $('.hero').magicBtn('show'); diff --git a/js/bootstrap-magic-button.js b/js/bootstrap-magic-button.js index 7c31851..ecf3286 100644 --- a/js/bootstrap-magic-button.js +++ b/js/bootstrap-magic-button.js @@ -87,7 +87,7 @@ function ($) { calculatePosition: function (direction) { var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace var left = this.$parentPosition.left + this.$parentWidth - switch (this.options.alignement) { + switch (this.options.alignment) { case 'top': this.$top = ( (this.$currentBtnNb * this.$height) - this.$height + this.$parentPosition.top + (space * (this.$currentBtnNb - 1))) @@ -187,7 +187,7 @@ function ($) { $.fn.magicBtn.defaults = { direction: 'right', betweenSpace: 2, - alignement: 'center', + alignment: 'center', hover: false }