scrivito_pdf_widget 1.0.7 → 1.0.9

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: 01232b42ef239013957bf50de821e2287575ae1e
4
- data.tar.gz: 7d3ddb8b948bc9059d6472f65510c46500c57815
3
+ metadata.gz: fe82dff1b410331ee568d09161f1810990fca948
4
+ data.tar.gz: 3dcf7b30223afcd9a2666c1b6d07ceb6d8e8b0fe
5
5
  SHA512:
6
- metadata.gz: f847977d3e90c1f64ab468cc001ae49a45b509f28b13e7282f9828f5d12f8e7ce6c60317187aa14ca682950a128dfa1a2445dc350e1cb67a41734dab11b21162
7
- data.tar.gz: d73c954fb1e8ab211c35e9f5d469f200889ade9def406fdf3820904bd786e868ddde0f3d5b6063fc681a1531a77920c97122c0901951f73efbb62b65ee169dce
6
+ metadata.gz: e3f3fd3b02bc4259b504c452b32d4cd367af2e2d3870e0817f72df4e38cabbbb577eaa1d398f962ad504ebb6bb378288b32ca0245863a6e6748508a068fd9a41
7
+ data.tar.gz: 170560212902fb1a73bf4aeb10ca8527e22cf99e3ddf56f8bf49358b466bc0462816d9ffbce8ba107b71d83ee502d6f7de2c6946b809560d5e3c98b3e28f6cd9
@@ -2,9 +2,11 @@
2
2
  'use strict';
3
3
 
4
4
  $(function() {
5
- scrivito.register_default_obj_class_for_content_type({
6
- 'application/pdf': 'Pdf'
7
- })
5
+ if(scrivito.in_editable_view()) {
6
+ scrivito.register_default_obj_class_for_content_type({
7
+ 'application/pdf': 'Pdf'
8
+ });
9
+ }
8
10
 
9
11
  scrivito.content_browser.filters.pdfs = {
10
12
  'title': 'PDF',
@@ -1,2 +1,2 @@
1
1
  <h4>Select PDF</h4>
2
- <%= scrivito_tag(:div, widget, :pdf, data: {filter: 'pdfs'}) %>
2
+ <%= scrivito_tag(:div, widget, :pdf) %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoPdfWidget
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_pdf_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler