Commit 96a4d61d authored by asseldonk's avatar asseldonk
Browse files

filebrowser: selections

parent 4151219d
<div class="file-view-symbol file-view-content-container">
<div class="file-view-symbol file-table">
<div draggable="true" class="file-node symbol-item" data-bind="data">
<p class="file-selection-p">
<label class="file-selection-box">
......
......@@ -89,7 +89,7 @@ var FileBaseSelections = Class.extend({
var offsetSelected = null;
var y = 0;
var lastSelectedNode = this.lastSelectedNode;
var contentContainer = $(".file-view-content-container", this.FileBase.view.fileContentContainer);
var contentContainer = $(".file-table", this.FileBase.view.fileContentContainer);
var offsetMain = this.FileBase.view.fileContentContainer.offset().top;
if (lastSelectedNode === null || number === 0) {
selectNode = contentContainer.children().first();
......
......@@ -83,7 +83,7 @@ function getShortcuts() {
this.fb.selections.selectNextNode();
} else {
var item = $(".symbol-item");
var widthContent = $(".file-node", this.fb.view.fileContentContainer).width();
var widthContent = $(".file-table", this.fb.view.fileContentContainer).width();
var widthItem = item.width() + parseInt(item.css("marginLeft"), 10) + parseInt(item.css(
"marginRight"), 10);
var elementsPerRow = Math.floor(widthContent / widthItem);
......@@ -100,7 +100,7 @@ function getShortcuts() {
this.fb.selections.selectPrevNode();
} else {
var item = $(".symbol-item");
var widthContent = $(".file-node", this.fb.view.fileContentContainer).width();
var widthContent = $(".file-table", this.fb.view.fileContentContainer).width();
var widthItem = item.width() + parseInt(item.css("marginLeft"), 10) + parseInt(item.css(
"marginRight"), 10);
var elementsPerRow = Math.floor(widthContent / widthItem);
......
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 to comment