alignment english mispell

gh-pages
Chakib Benziane 12 years ago
parent 4345dc81d2
commit 104efccd3b

@ -188,7 +188,7 @@
<br /> <br />
<br /> <br />
<pre class="prettyprint linenums">&lt;button class=&quot;magicBtn icon&quot;&gt;&lt;i class=&quot;icon-search&quot;&gt;&lt;/i&gt;&lt;/button&gt;<br/>&lt;button class=&quot;magicBtn icon&quot;&gt;&lt;i class=&quot;icon-user&quot;&gt;&lt;/i&gt;&lt;/button&gt;<br/></pre> <pre class="prettyprint linenums">&lt;button class=&quot;magicBtn icon&quot;&gt;&lt;i class=&quot;icon-search&quot;&gt;&lt;/i&gt;&lt;/button&gt;<br/>&lt;button class=&quot;magicBtn icon&quot;&gt;&lt;i class=&quot;icon-user&quot;&gt;&lt;/i&gt;&lt;/button&gt;<br/></pre>
<pre class="prettyprint linenums">$('.icon').magicBtn({hover: true, alignement: 'top'});<br/>$('.icon').magicBtn('show');</pre> <pre class="prettyprint linenums">$('.icon').magicBtn({hover: true, alignment: 'top'});<br/>$('.icon').magicBtn('show');</pre>
</div> </div>
</div> </div>
@ -223,7 +223,7 @@
</tr> </tr>
</thead> </thead>
<tr> <tr>
<td>alignement</td> <td>alignment</td>
<td>string</td> <td>string</td>
<td>center</td> <td>center</td>
<td>start showing buttons from center, 1 in middle, even on ones top and odd ones on bottom </td> <td>start showing buttons from center, 1 in middle, even on ones top and odd ones on bottom </td>
@ -276,13 +276,13 @@
$('.hover').magicBtn({hover: true}); $('.hover').magicBtn({hover: true});
$('.hover').magicBtn('show'); $('.hover').magicBtn('show');
$('.icon').magicBtn({hover: true, alignement: 'top'}); $('.icon').magicBtn({hover: true, alignment: 'top'});
$('.icon').magicBtn('show'); $('.icon').magicBtn('show');
$('.well .magicBtn').magicBtn('show'); $('.well .magicBtn').magicBtn('show');
$('.hero').magicBtn({hover: true, alignement: 'top'}); $('.hero').magicBtn({hover: true, alignment: 'top'});
$('.hero-unit').hoverIntent({ $('.hero-unit').hoverIntent({
over: function () { over: function () {
$('.hero').magicBtn('show'); $('.hero').magicBtn('show');

@ -87,7 +87,7 @@ function ($) {
calculatePosition: function (direction) { calculatePosition: function (direction) {
var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace
var left = this.$parentPosition.left + this.$parentWidth var left = this.$parentPosition.left + this.$parentWidth
switch (this.options.alignement) { switch (this.options.alignment) {
case 'top': case 'top':
this.$top = ( this.$top = (
(this.$currentBtnNb * this.$height) - this.$height + this.$parentPosition.top + (space * (this.$currentBtnNb - 1))) (this.$currentBtnNb * this.$height) - this.$height + this.$parentPosition.top + (space * (this.$currentBtnNb - 1)))
@ -187,7 +187,7 @@ function ($) {
$.fn.magicBtn.defaults = { $.fn.magicBtn.defaults = {
direction: 'right', direction: 'right',
betweenSpace: 2, betweenSpace: 2,
alignement: 'center', alignment: 'center',
hover: false hover: false
} }

Loading…
Cancel
Save