Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:cargomedia/CM into model-create
Browse files Browse the repository at this point in the history
  • Loading branch information
alexispeter committed Nov 25, 2016
2 parents 8862f80 + 86fbd3f commit 1983eb9
Show file tree
Hide file tree
Showing 25 changed files with 708 additions and 292 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ before_script:
- npm install -g [email protected]
- composer install
- cp tests/travis/config.php resources/config/local.php
- bin/cm app set-deploy-version
- bin/cm app set-config deploy '{"deployVersion":'$(date +"%s")'}'

script:
- bin/phpunit
Expand Down
17 changes: 17 additions & 0 deletions client-vendor/after-body/jquery.floatbox/jquery.floatbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
$parent: null,
$layer: null,
$floatbox: null,
setOptions: function(value){
if (_.isObject(value)) {
//`value` as object to rewrite options
_.extend(this.options, value);
this.repaint();
} else {
throw new Error('Invalid param to floatbox.setOptions');
}
},
show: function($element) {
var $floatboxConfig = $element.find('.floatbox-config:first');
this.options.fullscreen = $floatboxConfig.data('fullscreen') || this.options.fullscreen;
Expand Down Expand Up @@ -155,4 +164,12 @@
}
});
};
$.fn.floatbox = function(method, value) {
return this.each(function() {
var floatbox = $(this).data('floatbox');
if (floatbox && _.isFunction(floatbox[method])) {
floatbox[method](value);
}
});
};
})(jQuery);
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
$.fn.lazyImageSetup = function(lazyLoadOptions) {
return this.each(function() {
var options = _.defaults(lazyLoadOptions || {}, {
threshold: 600,
failure_limit: 10
offset: 600,
attribute: 'original'
});
var $this = $(this);
if ($this.closest('.scrollable').length) {
options.container = $this.closest('.scrollable');
}
$this.find('img.lazy').lazyload(options);
$this.find('img.lazy').unveil(options);
});
};

Expand Down
242 changes: 0 additions & 242 deletions client-vendor/after-body/jquery.lazyload/jquery.lazyload.js

This file was deleted.

5 changes: 5 additions & 0 deletions client-vendor/after-body/jquery.unveil2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Currently we use a custom fork https://github.com/vogdb/unveil2. As soon as out changes are merged please remove this file.
Our changes are:
- https://github.com/nabble/unveil2/pull/27
- https://github.com/nabble/unveil2/pull/28
- https://github.com/nabble/unveil2/pull/30
Loading

0 comments on commit 1983eb9

Please sign in to comment.