lighter_box 0.2.0 → 0.3.0
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/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/lib/assets/javascripts/lighter_box.coffee +1 -1
- data/lib/lighter_box/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7eeffa6b43bdfedb23fe7773b0e8b13e6ee96425
|
|
4
|
+
data.tar.gz: e1e54bc7e09593727970205ae98338a853e0ef9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb25ab6d893cc0983a4059c97405edebfa300cf21ff169f8aff2fa024b9f6b614f5272d87fbaf7e73347f44a340d9528625f3ac780fd5a64c72aab51195bdd48
|
|
7
|
+
data.tar.gz: 26b00578beba0e36b0672f231801425757c78fa5e3515e4e5de6ff415d415b96e7f7531a74589dc5512ee53e2acf72e2cb7b16518a0d88e7da724edb30ab443f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# v0.3.0
|
|
2
|
+
|
|
3
|
+
* New option `data-lightbox-href` for ajax lightboxes: Allows to override the URL to be loaded into the lightbox (default is the link’s `href` attribute).
|
|
4
|
+
|
|
1
5
|
# v0.2.0
|
|
2
6
|
|
|
3
7
|
* New option `data-lightbox-caption-allow-html` for image lightboxes: Allows the image caption to be interpreted as HTML.
|
data/README.md
CHANGED
|
@@ -59,6 +59,7 @@ Image lightbox only:
|
|
|
59
59
|
Ajax lightbox only:
|
|
60
60
|
|
|
61
61
|
* `data-lightbox-fragment`: A jQuery selector to specify the portion of the remote document to be loaded into the lightbox (similar to the fragment feature of [`jQuery.load()`](http://api.jquery.com/load/)).
|
|
62
|
+
* `data-lightbox-href`: The URL that to be loaded into the lightbox. If not set, the link’s `href` attribute is used.
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
### Events
|
|
@@ -245,7 +245,7 @@ class AjaxLighterBox extends LighterBox
|
|
|
245
245
|
@ajaxContainer = $("<div/>").appendTo(@modal)
|
|
246
246
|
|
|
247
247
|
_loadContent: =>
|
|
248
|
-
href = @srcEl.attr("href")
|
|
248
|
+
href = @srcEl.data("lightbox-href") || @srcEl.attr("href")
|
|
249
249
|
fragment = @srcEl.data("lightbox-fragment")
|
|
250
250
|
$.get href, (data) =>
|
|
251
251
|
data = $("<div/>").append($.parseHTML(data)).find(fragment)
|
data/lib/lighter_box/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lighter_box
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stefan Daschek
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: coffee-script
|