Skip to content

Commit

Permalink
connect with views
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Kraykov committed Jul 24, 2016
1 parent e217edd commit 624baa7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/templates/main-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
{{ fileNavigator.error }}
</td>
</tr>
<tr class="item-list" ng-repeat="item in $parent.fileList = (fileNavigator.fileList | filter: {model:{name: query}} | orderBy:predicate:reverse)" ng-show="!fileNavigator.requesting" ng-click="selectOrUnselect(item, $event)" ng-dblclick="smartClick(item)" ng-right-click="selectOrUnselect(item, $event)" ng-class="{selected: isSelected(item)}">
<td>
<tr class="item-list" ng-repeat="item in $parent.fileList = (fileNavigator.fileList | filter: {model:{name: query}} | orderBy:predicate:reverse)" ng-show="!fileNavigator.requesting" ng-click="selectOrUnselect(item, $event)" ng-dblclick="smartClick(item)" ng-right-click="selectOrUnselect(item, $event)" ng-class="{selected: isSelected(item)}" x-lvl-drop-target="{{item.model.type === 'dir'}}"
x-on-drop="dropped(dragEl, dropEl, item)" >
<td x-lvl-draggable="{{item.model.type !== 'syncgroup'}}">
<a href="" title="{{item.model.name}} ({{item.model.size | humanReadableFileSize}})">
<i class="glyphicon glyphicon-folder-close" ng-show="item.model.type === 'dir'"></i>
<i class="glyphicon glyphicon-file" ng-show="item.model.type === 'file'"></i>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/main.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div ng-controller="FileManagerCtrl" ngf-drop="addForUpload($files)" ngf-drag-over-class="'upload-dragover'" ngf-multiple="true">
<div ng-include="config.tplPath + '/navbar.html'"></div>

<div class="container-fluid">
<div class="container-fluid" x-lvl-drop-zone="true" x-on-drop="droppedFromDesktop(dragEl, dropEl, dragFiles)">
<div class="row">

<div class="col-sm-4 col-md-3 sidebar file-tree animated slow fadeIn" ng-include="config.tplPath + '/sidebar.html'" ng-show="config.sidebar &amp;&amp; fileNavigator.history[0]">
Expand Down
3 changes: 2 additions & 1 deletion src/templates/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
</ul>

<script type="text/ng-template" id="folder-branch-item">
<a href="" ng-click="fileNavigator.folderClick(item.item)" class="animated fast fadeInDown">
<a href="" ng-click="fileNavigator.folderClick(item.item)" x-lvl-drop-target="true"
x-on-drop="dropped(dragEl, dropEl, item.item)" class="animated fast fadeInDown">

<span class="point">
<i class="glyphicon glyphicon-chevron-down" ng-show="isInThisPath(item.name)"></i>
Expand Down

1 comment on commit 624baa7

@ariessulistio
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.