scrivito_sdk 1.3.0 → 1.3.1.rc1

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: 6e9be73a258ceb8e985805d44fad84d6c240e997
4
- data.tar.gz: 6972d12a1fbf710dfd93eee5775eab3bd01c0b07
3
+ metadata.gz: 75a8e93e0c009c9682a90510bc5d4907f3c59cad
4
+ data.tar.gz: 3a8b96b0cdf599b83e324826bcad0dbcbb1dfbb9
5
5
  SHA512:
6
- metadata.gz: 164daaffda38c0971333828d4c65dceb5e0f56185a51509f937c1fd7b110c8b72d017e1f9088509b0658ef0f97dbafd38690448cdbeffa17d06e87b281c42585
7
- data.tar.gz: 2a21410a7813d0f32e37ccf322995c464916f720f716d1b36c946b24bc20d43fde64d2790cea6cd5a67a4ad2d9b855a3c29f2d1965b8f42158ac697a6e8eba4e
6
+ metadata.gz: 54dc33592c82cf6d869f1810bfd779c3856b983efc3a77c3642228950f3e32924a415a721f45073ea8752c86cd1791e4c8f982bd3ede40e13eafb675b8aaadcb
7
+ data.tar.gz: 2d1f3080e7bd6a667042daab34df54b46e73f4fe401916abf230a8527c8a8b2594a691fc2cd03ea617260e929bf5945ff62ffd60fea27cc8e68b26c043229fb2
data/config/ca-bundle.crt CHANGED
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Wed May 11 09:45:29 2016
4
+ ## Certificate data from Mozilla as of: Wed May 25 15:52:59 2016
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
@@ -31406,6 +31406,7 @@ var scrivito = {}; // jshint ignore:line
31406
31406
  scrivito.enableColDragDrool = true;
31407
31407
  }
31408
31408
  scrivito.dragDrool.init();
31409
+ scrivito.dragScroll.init();
31409
31410
 
31410
31411
  scrivito.widgetlistFieldPlaceholder.init();
31411
31412
 
@@ -38595,26 +38596,31 @@ var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr =
38595
38596
 
38596
38597
  scrivito.gui.on('document', function (document) {
38597
38598
  var body = document.dom_element().find('body');
38599
+
38598
38600
  body.on('dragover', function (e) {
38599
- return scrivito.dragDrool.dragover(e, body.get(0));
38601
+ if (scrivito.in_editable_view()) {
38602
+ scrivito.dragDrool.dragover(e, body.get(0));
38603
+ }
38600
38604
  });
38601
38605
  });
38602
38606
 
38603
38607
  scrivito.on('content', function (content) {
38604
- var cmsDocument = scrivito.cms_document.from($(content));
38608
+ if (scrivito.in_editable_view()) {
38609
+ var cmsDocument = scrivito.cms_document.from($(content));
38605
38610
 
38606
- _.each(scrivito.widget_element.all(cmsDocument.dom_element()), function (widgetElement) {
38607
- var markers = widgetElement.dom_element().find('> .scrivito_editing_marker');
38611
+ _.each(scrivito.widget_element.all(cmsDocument.dom_element()), function (widgetElement) {
38612
+ var markers = widgetElement.dom_element().find('> .scrivito_editing_marker');
38608
38613
 
38609
- markers.attr('draggable', 'true');
38614
+ markers.attr('draggable', 'true');
38610
38615
 
38611
- markers.on('dragstart', function (e) {
38612
- return scrivito.dragDrool.dragstart(e);
38613
- });
38614
- markers.on('dragend', function (e) {
38615
- return scrivito.dragDrool.dragend(e);
38616
+ markers.on('dragstart', function (e) {
38617
+ return scrivito.dragDrool.dragstart(e);
38618
+ });
38619
+ markers.on('dragend', function (e) {
38620
+ return scrivito.dragDrool.dragend(e);
38621
+ });
38616
38622
  });
38617
- });
38623
+ }
38618
38624
  });
38619
38625
  },
38620
38626
 
@@ -39003,6 +39009,42 @@ var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr =
39003
39009
  cursor.show();
39004
39010
  };
39005
39011
  })();
39012
+ 'use strict';
39013
+
39014
+ (function () {
39015
+ scrivito.dragScroll = {
39016
+ SENSIVITY: 30,
39017
+ SPEED: 25,
39018
+
39019
+ init: function init() {
39020
+ var _this = this;
39021
+
39022
+ scrivito.gui.on('document', function (cmsDocument) {
39023
+ var $document = cmsDocument.dom_element();
39024
+ $document.find('body').on('dragover', function (e) {
39025
+ return _this.dragover(e, $document);
39026
+ });
39027
+ });
39028
+ },
39029
+
39030
+ dragover: function dragover(e, $document) {
39031
+ var mouseY = e.originalEvent.pageY;
39032
+ var documentScrollTop = $document.scrollTop();
39033
+
39034
+ if (mouseY - documentScrollTop < this.SENSIVITY) {
39035
+ $document.scrollTop(documentScrollTop - this.SPEED);
39036
+ return;
39037
+ }
39038
+
39039
+ var windowHeight = $(window).height();
39040
+ var bodyOffset = $('body').offset().top;
39041
+
39042
+ if (windowHeight - mouseY + documentScrollTop - bodyOffset < this.SENSIVITY) {
39043
+ $document.scrollTop(documentScrollTop + this.SPEED);
39044
+ }
39045
+ }
39046
+ };
39047
+ })();
39006
39048
  (function() {
39007
39049
  _.extend(scrivito, {
39008
39050
  editable_workspace_dialog: function(workspaces, locale_path) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -428,9 +428,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
428
428
  version: 2.1.0
429
429
  required_rubygems_version: !ruby/object:Gem::Requirement
430
430
  requirements:
431
- - - ">="
431
+ - - ">"
432
432
  - !ruby/object:Gem::Version
433
- version: '0'
433
+ version: 1.3.1
434
434
  requirements: []
435
435
  rubyforge_project:
436
436
  rubygems_version: 2.4.5