Commit 98614947 by Bence Dányi

webui: missing ;, dev comments removed

parent 9ec26ced
...@@ -124,7 +124,7 @@ var cloud = (function(cloud) { ...@@ -124,7 +124,7 @@ var cloud = (function(cloud) {
if (!showToplist()) { if (!showToplist()) {
return gettext('Toplist'); return gettext('Toplist');
} else { } else {
return gettext('Back to the root folder') return gettext('Back to the root folder');
} }
}) })
...@@ -150,7 +150,7 @@ var cloud = (function(cloud) { ...@@ -150,7 +150,7 @@ var cloud = (function(cloud) {
}, 500); }, 500);
}); });
} }
}) });
} }
/** /**
...@@ -268,7 +268,7 @@ var cloud = (function(cloud) { ...@@ -268,7 +268,7 @@ var cloud = (function(cloud) {
success: function(data) { success: function(data) {
window.location.href = data.url; window.location.href = data.url;
} }
}) });
} }
/** /**
...@@ -318,8 +318,7 @@ var cloud = (function(cloud) { ...@@ -318,8 +318,7 @@ var cloud = (function(cloud) {
g.stopPropagation(); g.stopPropagation();
self.rename(item, g); self.rename(item, g);
}); });
}) });
//$(e.target).parent().parent().parent().unbind('click');
$(e.target).parent().parent().parent().find('.name').html('<input type="text" value="' + item.originalName + '" />\ $(e.target).parent().parent().parent().find('.name').html('<input type="text" value="' + item.originalName + '" />\
<input type="submit" value="' + gettext('Rename') + '" />'); <input type="submit" value="' + gettext('Rename') + '" />');
$(e.target).parent().parent().parent().find('.name input').click(function(f) { $(e.target).parent().parent().parent().find('.name input').click(function(f) {
...@@ -403,7 +402,6 @@ var cloud = (function(cloud) { ...@@ -403,7 +402,6 @@ var cloud = (function(cloud) {
} }
var formData = tests.formdata ? new FormData() : null; var formData = tests.formdata ? new FormData() : null;
formData.append('data', file); formData.append('data', file);
// now post a new XHR request
if (tests.formdata) { if (tests.formdata) {
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
var start = new Date().getTime(); var start = new Date().getTime();
......
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