scrivito_section_widgets 0.0.14 → 0.0.15

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: dc191a786b525e214f6099f0c84c5667478ca630
4
- data.tar.gz: 2c6b2989e7276f2687a9ded6eefc8d51b0c0721c
3
+ metadata.gz: 08ffa7976b80aba97a2802bb2403f836ee4170e4
4
+ data.tar.gz: fbfda3737e88e83f6fe1f51d52af18fb5a37b1dd
5
5
  SHA512:
6
- metadata.gz: 549fa546590d599657c466b381fb524f8d1c683e4968c43a14ab6a831f0d38dd608d165f2c71fbcd709a32252b6ab3ee3b029df476da2834d2c90c9b1f141ff4
7
- data.tar.gz: 33a3a09e3d7f4161d0fdb7830e1e9852fcd80cc3875b36ca4ba24c878bff1fa6bacbb83d92f45a34bdfb5551f3bb81d2f5006e1b1b2f7cd179cebb5253531774
6
+ metadata.gz: cc44093dd59a73f802725a0e751560c762348e9d0b6db69307c4d674e2d1ee9554d54168087243771864653067d3aff0203ce8138bd63c516a63ac1db8050e79
7
+ data.tar.gz: 3cc4ce8627a0cd8930b79da714768b42b5c4c695a1b784b11c1cde4378e3daab5bc6ff325f689d97772244b4f98a025b743e3f61f337cc696abbb7961449d265
@@ -1,7 +1,13 @@
1
- $(function() {
2
- scrivito.register_default_obj_class_for_content_type({
3
- 'video/mp4': 'Video',
4
- 'video/ogg': 'Video',
5
- 'video/webm': 'Video'
6
- })
7
- });
1
+ (function($, App) {
2
+ 'use strict';
3
+
4
+ scrivito.on('content', function() {
5
+ if(scrivito.in_editable_view()) {
6
+ scrivito.register_default_obj_class_for_content_type({
7
+ 'video/mp4': 'Video',
8
+ 'video/ogg': 'Video',
9
+ 'video/webm': 'Video'
10
+ });
11
+ }
12
+ });
13
+ })(jQuery, this);
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSectionWidgets
2
- VERSION = "0.0.14"
2
+ VERSION = "0.0.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_section_widgets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-08 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler