Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Version 2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tocker committed Dec 28, 2015
1 parent cf4690d commit c744625
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudinary-jquery-file-upload",
"version": "2.0.3",
"version": "2.0.4",
"homepage": "http://cloudinary.com",
"authors": [
{
Expand Down
18 changes: 11 additions & 7 deletions cloudinary-jquery-file-upload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Cloudinary's JavaScript library - Version 2.0.3
* Cloudinary's JavaScript library - Version 2.0.4
* Copyright Cloudinary
* see https://github.com/cloudinary/cloudinary_js
*/
Expand Down Expand Up @@ -2203,7 +2203,7 @@
return Cloudinary = (function() {
var AKAMAI_SHARED_CDN, CF_SHARED_CDN, DEFAULT_POSTER_OPTIONS, DEFAULT_VIDEO_SOURCE_TYPES, OLD_AKAMAI_SHARED_CDN, SHARED_CDN, VERSION, absolutize, applyBreakpoints, cdnSubdomainNumber, closestAbove, cloudinaryUrlPrefix, defaultBreakpoints, finalizeResourceType, parentWidth;

VERSION = "2.0.3";
VERSION = "2.0.4";

CF_SHARED_CDN = "d3jpl91pxevbkh.cloudfront.net";

Expand Down Expand Up @@ -2266,7 +2266,7 @@
this.devicePixelRatioCache = {};
this.responsiveConfig = {};
this.responsiveResizeInitialized = false;
configuration = new cloudinary.Configuration(options);
configuration = new Configuration(options);
this.config = function(newConfig, newValue) {
return configuration.config(newConfig, newValue);
};
Expand Down Expand Up @@ -2782,7 +2782,7 @@
};

cloudinaryUrlPrefix = function(publicId, options) {
var cdnPart, host, path, protocol, ref, ref1, subdomain;
var cdnPart, host, path, protocol, ref, subdomain;
if (((ref = options.cloud_name) != null ? ref.indexOf("/") : void 0) === 0) {
return '/res' + options.cloud_name;
}
Expand All @@ -2793,8 +2793,6 @@
path = "/" + options.cloud_name;
if (options.protocol) {
protocol = options.protocol + '//';
} else if ((typeof window !== "undefined" && window !== null ? (ref1 = window.location) != null ? ref1.protocol : void 0 : void 0) === 'file:') {
protocol = 'file://';
}
if (options.private_cdn) {
cdnPart = options.cloud_name + "-";
Expand Down Expand Up @@ -3294,6 +3292,9 @@
*/
jQuery.fn.cloudinary_fileupload = function(options) {
var cloud_name, initializing, resource_type, type, upload_url;
if (!Util.isFunction($.fn.fileupload)) {
return this;
}
initializing = !this.data('blueimpFileupload');
if (initializing) {
options = jQuery.extend({
Expand Down Expand Up @@ -3373,6 +3374,9 @@
* @returns {jQuery}
*/
jQuery.fn.cloudinary_upload_url = function(remote_url) {
if (!Util.isFunction($.fn.fileupload)) {
return this;
}
this.fileupload('option', 'formData').file = remote_url;
this.fileupload('add', {
files: [remote_url]
Expand Down Expand Up @@ -3456,7 +3460,7 @@
(function() {
(function(root, factory) {
if ((typeof define === 'function') && define.amd) {
return define('cloudinary-jquery-file-upload-full',['utf8_encode', 'crc32', 'util', 'transformation', 'configuration', 'tags/htmltag', 'tags/imagetag', 'tags/videotag', 'cloudinary', 'cloudinaryjquery', 'jquery-file-upload'], factory);
return define(['utf8_encode', 'crc32', 'util', 'transformation', 'configuration', 'tags/htmltag', 'tags/imagetag', 'tags/videotag', 'cloudinary', 'cloudinaryjquery', 'jquery-file-upload'], factory);
} else if (typeof exports === 'object') {
return module.exports = factory(require('utf8_encode'), require('crc32'), require('util'), require('transformation'), require('configuration'), require('tags/htmltag'), require('tags/imagetag'), require('tags/videotag'), require('cloudinary'), require('cloudinaryjquery'), require('jquery-file-upload'));
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudinary-jquery-file-upload",
"version": "2.0.3",
"version": "2.0.4",
"description": "Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more. Cloudinary's jQuery plugin allows direct uploading from the browser to the cloud and dynamic cloud-based image transformations and effects.",
"main": "cloudinary-jquery-file-upload.js",
"repository": {
Expand Down

0 comments on commit c744625

Please sign in to comment.