ecm_lightbox2 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d3a95744622b2c38bfeae056cbc9d6d2a992e58
4
- data.tar.gz: 886912a48fb861c355f212e711b8db2c002a2253
3
+ metadata.gz: b51e10e2706641098c5674d3ac5e158498bfb438
4
+ data.tar.gz: 522f3cbc165d4ae4b8afc23da364678e66cd42ef
5
5
  SHA512:
6
- metadata.gz: fe7a5cd65330867e512cf3070f51c01a22cdaf8f8ad045fde677dd2518710e06e1aa86607d5bad24e81f3288dff4f1469e84e3e72f2925c0fdce9042c203c97e
7
- data.tar.gz: ac1a5d6d198e8a00ed25170edb18e01a2001af1c168b00dbeb25753876c079733de05e94b3d9003d0ea5e20b6d52212725aee35e83d8bdf1f4dd939ce480b973
6
+ metadata.gz: c5860bb745d6610b77910ae1a2e7ed0b766afa8f02607348fff530a5b9b87a42c4e71791f5ea726f28b2defdb5bc6216507e1e4f002cbb4d46b0b523094b73a3
7
+ data.tar.gz: 859c7941bea0c639f1e58780e5fb347de62e27d8547d43a4e60151ba36646a55de9a6f4d6485d08354b424cfa8afb2573e708d6a9eb7a5d9c823df8a454c68c3
@@ -1,5 +1,5 @@
1
1
  <!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
2
- <div id="blueimp-gallery" class="blueimp-gallery">
2
+ <div id="blueimp-gallery" class="blueimp-gallery" data-use-bootstrap-modal="<%= Ecm::Lightbox::Configuration.use_bootstrap_modal.to_s %>">
3
3
  <!-- The container for the modal slides -->
4
4
  <div class="slides"></div>
5
5
  <!-- Controls for the borderless lightbox -->
@@ -8,6 +8,8 @@ module Ecm
8
8
  def configure
9
9
  yield self
10
10
  end
11
+
12
+ mattr_accessor(:use_bootstrap_modal) { true }
11
13
  end
12
14
  end
13
15
  end
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Lightbox
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -1,3 +1,9 @@
1
1
  Ecm::Lightbox.configure do |config|
2
- # Nothing here yet.
2
+ # Bootstrap Image Gallery provides the additional useBootstrapModal option,
3
+ # which enables the original borderless layout as seen in the demo. Set this
4
+ # option to false to use the borderless setup.
5
+ #
6
+ # Default: config.use_bootstrap_modal = true
7
+ #
8
+ config.use_bootstrap_modal = true
3
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_lightbox2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails