coffeebox 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/app/assets/javascripts/coffeebox/main.js.coffee +1 -1
- data/lib/coffeebox.rb +0 -1
- data/lib/coffeebox/engine.rb +0 -1
- data/lib/coffeebox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 277ee79246bac5e7fcb5db343385162ab0ad475a
|
4
|
+
data.tar.gz: 6bd6d4db317c2572076b4b34ae47023756761aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13904bc05db9eeba3d0dc2bae39433c1d44e112973466b10866d9924cfbb25a8437519ded9232afcb8b97c97bcd3e5f20e8357c808bb7ad872917bb9092e900e
|
7
|
+
data.tar.gz: 2e9fe21e21c69742dea596f6716664c035e4b0c01a21ee694952b9691fad59b7b64db8dc3a5e9ea533759d4923b22f491d4f71d3b32c1194f1835926c19334b4
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ This is an opinionated rewrite of [Facebox](http://defunkt.github.com/facebox/).
|
|
13
13
|
7. Proper show/hide of overlay (no blinking when loading -> loaded)
|
14
14
|
8. Configurable SASS styling
|
15
15
|
|
16
|
-
|
16
|
+
#### List of removed Facebox features:
|
17
17
|
|
18
18
|
1. Overlay opacity setting - please use CSS instead
|
19
19
|
|
@@ -60,6 +60,8 @@ or import SASS file directly (from sass\scss only)
|
|
60
60
|
|
61
61
|
## Usage
|
62
62
|
|
63
|
+
```$.cbox``` is just a shorter alias for ```$.coffebox```
|
64
|
+
|
63
65
|
Simple:
|
64
66
|
|
65
67
|
$ ->
|
@@ -69,8 +71,8 @@ Simple:
|
|
69
71
|
|
70
72
|
Advanced:
|
71
73
|
|
72
|
-
$.
|
73
|
-
$.
|
74
|
+
$.cbox('test <b>html</b>')
|
75
|
+
$.cbox(image: 'http://...')
|
74
76
|
$.cbox.loading()
|
75
77
|
$.cbox.close()
|
76
78
|
|
@@ -105,7 +105,7 @@ $.fn.coffeebox = (settings) ->
|
|
105
105
|
klass = klass[1] if klass
|
106
106
|
fillcoffeeboxFromHref @href, klass
|
107
107
|
false
|
108
|
-
return init(settings)
|
108
|
+
return init(settings) if $(this).length is 0
|
109
109
|
@bind "click.coffeebox", clickHandler
|
110
110
|
|
111
111
|
# Private methods
|
data/lib/coffeebox.rb
CHANGED
data/lib/coffeebox/engine.rb
CHANGED
data/lib/coffeebox/version.rb
CHANGED