Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.

Bump up to jquery.fileupload 5.5.3 & jquery.fileupload-ui 6.0.2. #1

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,10 @@
CHANGELOG
=========

0.0.2 (Dec 21, 2011)
---------------------
* Bump up to jquery.fileupload 5.5.3 & jquery.fileupload-ui 6.0.2.

0.0.1 (Dec 8, 2011)
---------------------
* Initial release with jquery.fileupload 5.5.2 & jquery.fileupload-ui 5.1.1.
7 changes: 7 additions & 0 deletions README.md
@@ -0,0 +1,7 @@
# jQuery File Upload Rails

jQuery File Upload is a very well designed cross-browser solution for modern file uploading with pure JavaScript. The plugin is developed by Sebastian Tschan (@blueimp) and well maintained.

This is a simple gem package for this plugin.

[See the original project page](https://github.com/blueimp/jQuery-File-Upload) for reference & documentation.
2 changes: 1 addition & 1 deletion lib/jquery.fileupload-rails/version.rb
@@ -1,5 +1,5 @@
module JqueryFileUpload
module Rails
VERSION = "0.0.1"
VERSION = "0.0.2"
end
end
Binary file added vendor/.DS_Store
Binary file not shown.
Binary file added vendor/assets/.DS_Store
Binary file not shown.
570 changes: 225 additions & 345 deletions vendor/assets/javascripts/jquery.fileupload-ui.js 100644 → 100755

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions vendor/assets/javascripts/jquery.fileupload.js 100644 → 100755
@@ -1,12 +1,12 @@
/*
* jQuery File Upload Plugin 5.5.2
* jQuery File Upload Plugin 5.5.3
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
* http://www.opensource.org/licenses/MIT
*/

/*jslint nomen: true, unparam: true, regexp: true */
Expand Down Expand Up @@ -716,7 +716,7 @@
},

_initEventHandlers: function () {
var ns = this.options.namespace || this.widgetName;
var ns = this.options.namespace;
this.options.dropZone
.bind('dragover.' + ns, {fileupload: this}, this._onDragOver)
.bind('drop.' + ns, {fileupload: this}, this._onDrop)
Expand All @@ -726,7 +726,7 @@
},

_destroyEventHandlers: function () {
var ns = this.options.namespace || this.widgetName;
var ns = this.options.namespace;
this.options.dropZone
.unbind('dragover.' + ns, this._onDragOver)
.unbind('drop.' + ns, this._onDrop)
Expand Down Expand Up @@ -763,6 +763,7 @@

_create: function () {
var options = this.options;
options.namespace = options.namespace || this.widgetName;
if (options.fileInput === undefined) {
options.fileInput = this.element.is('input:file') ?
this.element : this.element.find('input:file');
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/jquery.iframe-transport.js 100644 → 100755
Expand Up @@ -6,7 +6,7 @@
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
* http://www.opensource.org/licenses/MIT
*/

/*jslint unparam: true, nomen: true */
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/jquery.postmessage-transport.js 100644 → 100755
Expand Up @@ -6,7 +6,7 @@
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
* http://www.opensource.org/licenses/MIT
*/

/*jslint unparam: true, nomen: true */
Expand Down
2 changes: 1 addition & 1 deletion vendor/assets/javascripts/jquery.xdr-transport.js 100644 → 100755
Expand Up @@ -6,7 +6,7 @@
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
* http://www.opensource.org/licenses/MIT
*
* Based on Julian Aubourg's ajaxHooks xdr.js:
* https://github.com/jaubourg/ajaxHooks/
Expand Down
Binary file added vendor/assets/stylesheets/.DS_Store
Binary file not shown.
86 changes: 21 additions & 65 deletions vendor/assets/stylesheets/jquery.fileupload-ui.css 100644 → 100755
@@ -1,16 +1,16 @@
@charset 'UTF-8';
/*
* jQuery File Upload UI Plugin CSS 5.0.6
* jQuery File Upload UI Plugin CSS 6.0
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2010, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://creativecommons.org/licenses/MIT/
* http://www.opensource.org/licenses/MIT
*/

.fileupload-buttonbar .ui-button input {
.fileinput-button input {
position: absolute;
top: 0;
right: 0;
Expand All @@ -19,82 +19,38 @@
border-width: 0 0 100px 200px;
opacity: 0;
filter: alpha(opacity=0);
-o-transform: translate(250px, -50px) scale(1);
-moz-transform: translate(-300px, 0) scale(4);
direction: ltr;
cursor: pointer;
}

.fileinput-button {
position: relative;
overflow: hidden;
float: left;
margin-right: 4px;
}

/* Fix for IE 6: */
*html .fileinput-button {
padding: 2px 0;
}

/* Fix for IE 7: */
*+html .fileinput-button {
padding: 2px 0;
}

.fileupload-buttonbar {
padding: 0.2em 0.4em;
}

.fileupload-buttonbar .ui-button {
vertical-align: middle;
}

.fileupload-content {
padding: 0.2em 0.4em;
border-top-width: 0;
}

.fileupload-content .ui-progressbar {
.progressbar,
.progressbar div {
width: 200px;
height: 20px;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.3);
-moz-box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.3);
box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.3);
background: #fff;
}

.fileupload-content .ui-progressbar-value {
background: url(pbar-ani.gif);
.progressbar div {
width: auto;
background: url(progressbar.gif);
}

.fileupload-content .fileupload-progressbar {
.fileupload-progressbar {
float: right;
width: 400px;
margin: 10px 0;
}

.files {
margin: 10px 0;
border-collapse: collapse;
margin-top: 4px;
}

.files td {
padding: 5px;
border-spacing: 5px;
}

.files img {
border: none;
}

.files .name {
padding: 0 10px;
}

.files .size {
padding: 0 10px 0 0;
text-align: right;
white-space: nowrap;
}

.ui-state-disabled .ui-state-disabled {
opacity: 1;
filter: alpha(opacity=100);
}

.ui-state-disabled input {
cursor: default;
}