Commit 20fcdf2c by Dányi Bence

one: old JS debug messages removed

parent a12a1c6a
...@@ -32,7 +32,6 @@ $(function() { ...@@ -32,7 +32,6 @@ $(function() {
$(this).parent('.wm').removeClass('opened'); $(this).parent('.wm').removeClass('opened');
$(this).next('.details').slideUp(700); $(this).next('.details').slideUp(700);
} else { } else {
console.log('addClass');
$(this).parent('.wm').addClass('opened'); $(this).parent('.wm').addClass('opened');
$(this).next('.details').slideDown(700); $(this).next('.details').slideDown(700);
} }
...@@ -86,7 +85,6 @@ $(function() { ...@@ -86,7 +85,6 @@ $(function() {
var disabled = false; var disabled = false;
return function() { return function() {
if(disabled) { if(disabled) {
console.log('disabled');
return return
}; };
disabled = true; disabled = true;
...@@ -218,8 +216,6 @@ $(function() { ...@@ -218,8 +216,6 @@ $(function() {
success: function(data) { success: function(data) {
self.uploadURL(data.url); self.uploadURL(data.url);
} }
}).error(function() {
console.log('asd', arguments)
}) })
} }
self.newFolderName = ko.observable(); self.newFolderName = ko.observable();
...@@ -252,14 +248,12 @@ $(function() { ...@@ -252,14 +248,12 @@ $(function() {
if(tests.formdata) { if(tests.formdata) {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('POST', self.uploadURL()); xhr.open('POST', self.uploadURL());
console.log(xhr);
xhr.onload = function() { xhr.onload = function() {
self.uploadProgress('0%'); self.uploadProgress('0%');
loadFolder(self.currentPath()); loadFolder(self.currentPath());
}; };
if(tests.progress) { if(tests.progress) {
xhr.upload.onprogress = function(event) { xhr.upload.onprogress = function(event) {
console.log(event);
if(event.lengthComputable) { if(event.lengthComputable) {
var complete = (event.loaded / event.total * 100 | 0); var complete = (event.loaded / event.total * 100 | 0);
//progress.value = progress.innerHTML = complete; //progress.value = progress.innerHTML = complete;
...@@ -272,10 +266,8 @@ $(function() { ...@@ -272,10 +266,8 @@ $(function() {
} }
} }
document.addEventListener('drop', function(e) { document.addEventListener('drop', function(e) {
console.log(e);
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
console.log(e.dataTransfer.files)
readfiles(e.dataTransfer.files); readfiles(e.dataTransfer.files);
return false; return false;
}); });
...@@ -309,13 +301,11 @@ $(function() { ...@@ -309,13 +301,11 @@ $(function() {
var model = new Model(); var model = new Model();
ko.applyBindings(model); ko.applyBindings(model);
document.addEventListener('dragenter', function(e) { document.addEventListener('dragenter', function(e) {
console.log(e);
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
return false; return false;
}); });
document.addEventListener('dragover', function(e) { document.addEventListener('dragover', function(e) {
console.log(e);
e.stopPropagation(); e.stopPropagation();
e.preventDefault(); e.preventDefault();
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment