Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: Whitespace cleanup ticket 6943

Make sure tabs are used consistently.
  • Loading branch information...
commit 180a305dd1d690d74e29a57afbde70ee7b24d9ab 1 parent b075dc9
@adrexia adrexia authored
Showing with 20 additions and 20 deletions.
  1. +20 −20 javascript/UploadField.js
View
40 javascript/UploadField.js
@@ -41,34 +41,34 @@
/* Attach classes to dropzone when element can be dropped*/
$(document).unbind('dragover');
$(document).bind('dragover', function (e) {
- timeout = window.dropZoneTimeout;
+ timeout = window.dropZoneTimeout;
var $target = $(e.target);
- if (!timeout) {
- dropZone.addClass('active');
- } else {
- clearTimeout(timeout);
- }
- if ($target.closest('.ss-uploadfield-dropzone').length > 0) {
- dropZone.addClass('hover');
- } else {
- dropZone.removeClass('hover');
- }
- window.dropZoneTimeout = setTimeout(function () {
- window.dropZoneTimeout = null;
- dropZone.removeClass('active hover');
- }, 100);
+ if (!timeout) {
+ dropZone.addClass('active');
+ } else {
+ clearTimeout(timeout);
+ }
+ if ($target.closest('.ss-uploadfield-dropzone').length > 0) {
+ dropZone.addClass('hover');
+ } else {
+ dropZone.removeClass('hover');
+ }
+ window.dropZoneTimeout = setTimeout(function () {
+ window.dropZoneTimeout = null;
+ dropZone.removeClass('active hover');
+ }, 100);
});
//disable default behaviour if file dropped in the wrong area
$(document).bind('drop dragover', function (e){
- e.preventDefault();
+ e.preventDefault();
});
-
-
-
+
+
+
this.setConfig(config);
this.fileupload($.extend(true,
- {
+ {
formData: function(form) {
return [
Please sign in to comment.
Something went wrong with that request. Please try again.