Fix lint errors

pull/1/head
yflory 8 years ago
parent 79365a7a82
commit c9d89debba

@ -378,13 +378,13 @@ define([
if (e.ctrlKey) { ev.ctrlKey = true; } if (e.ctrlKey) { ev.ctrlKey = true; }
if (e.shiftKey) { ev.shiftKey = true; } if (e.shiftKey) { ev.shiftKey = true; }
var click = function (el) { var click = function (el) {
onElementClick(ev, $(el)); module.onElementClick(ev, $(el));
}; };
// Enter // Enter
if (e.which === 13) { if (e.which === 13) {
var $selection = $content.find('.file-element.selected'); var $select = $content.find('.file-element.selected');
$selection.each(function (idx, el) { $select.each(function (idx, el) {
$(el).dblclick(); $(el).dblclick();
}); });
return; return;
@ -415,7 +415,7 @@ define([
var $line = $elements.filter(function (idx, el) { var $line = $elements.filter(function (idx, el) {
return $(el).position().top === pos.top; return $(el).position().top === pos.top;
}); });
var cols = $line.length var cols = $line.length;
var lines = Math.ceil(length/cols); var lines = Math.ceil(length/cols);
var lastPos = { var lastPos = {
@ -702,7 +702,7 @@ define([
}; };
// Add the "selected" class to the "li" corresponding to the clicked element // Add the "selected" class to the "li" corresponding to the clicked element
var onElementClick = function (e, $element) { var onElementClick = module.onElementClick = function (e, $element) {
// If "Ctrl" is pressed, do not remove the current selection // If "Ctrl" is pressed, do not remove the current selection
removeInput(); removeInput();
$element = findDataHolder($element); $element = findDataHolder($element);

Loading…
Cancel
Save