@@ -96,30 +96,54 @@ angular.module('web')
96
96
97
97
98
98
} ) ;
99
- $scope . fileSpacerMenuOptions = [
100
- [ function ( ) {
101
- return '<i class="glyphicon glyphicon-cloud-upload text-info"></i> ' + T ( 'upload' )
102
- } , function ( $itemScope , $event ) {
103
- showUploadDialog ( )
104
- } , function ( ) {
105
- return $scope . currentAuthInfo . privilege != 'readOnly'
106
- } ] ,
107
- [ function ( ) {
108
- return '<i class="glyphicon glyphicon-plus text-success"></i> ' + T ( 'folder.create' )
109
- } , function ( $itemScope , $event ) {
110
- showAddFolder ( )
111
- } , function ( ) {
112
- return $scope . currentAuthInfo . privilege != 'readOnly'
113
- } ] ,
114
99
115
- [ function ( ) {
116
- return '<i class="fa fa-paste text-primary"></i> ' + T ( 'paste' ) + ( $scope . keepMoveOptions ?'(' + $scope . keepMoveOptions . items . length + ')' :'' )
117
- } , function ( $itemScope , $event ) {
118
- showPaste ( )
119
- } , function ( ) {
120
- return $scope . keepMoveOptions
121
- } ]
122
- ] ;
100
+ if ( $scope . isMac ) {
101
+ $scope . fileSpacerMenuOptions = [
102
+ [ function ( ) {
103
+ return '<i class="fa fa-upload text-info"></i> ' + T ( 'upload' )
104
+ } , function ( $itemScope , $event ) {
105
+ showUploadDialog ( )
106
+ } , function ( ) {
107
+ return $scope . currentAuthInfo . privilege != 'readOnly'
108
+ } ]
109
+ ]
110
+ }
111
+ else {
112
+ $scope . fileSpacerMenuOptions = [
113
+ [ function ( ) {
114
+ return '<i class="fa fa-upload text-info"></i> ' + T ( 'file' )
115
+ } , function ( $itemScope , $event ) {
116
+ showUploadDialog ( )
117
+ } , function ( ) {
118
+ return $scope . currentAuthInfo . privilege != 'readOnly'
119
+ } ] ,
120
+
121
+ [ function ( ) {
122
+ return '<i class="fa fa-upload text-info"></i> ' + T ( 'folder' )
123
+ } , function ( $itemScope , $event ) {
124
+ showUploadDialog ( true )
125
+ } , function ( ) {
126
+ return $scope . currentAuthInfo . privilege != 'readOnly'
127
+ } ]
128
+ ]
129
+ }
130
+ $scope . fileSpacerMenuOptions = $scope . fileSpacerMenuOptions . concat ( [
131
+ [ function ( ) {
132
+ return '<i class="glyphicon glyphicon-plus text-success"></i> ' + T ( 'folder.create' )
133
+ } , function ( $itemScope , $event ) {
134
+ showAddFolder ( )
135
+ } , function ( ) {
136
+ return $scope . currentAuthInfo . privilege != 'readOnly'
137
+ } ] ,
138
+
139
+ [ function ( ) {
140
+ return '<i class="fa fa-paste text-primary"></i> ' + T ( 'paste' ) + ( $scope . keepMoveOptions ?'(' + $scope . keepMoveOptions . items . length + ')' :'' )
141
+ } , function ( $itemScope , $event ) {
142
+ showPaste ( )
143
+ } , function ( ) {
144
+ return $scope . keepMoveOptions
145
+ } ]
146
+ ] ) ;
123
147
124
148
$scope . fileMenuOptions = function ( item , $index ) {
125
149
if ( $scope . sel . x [ 'i_' + $index ] ) {
@@ -137,7 +161,7 @@ angular.module('web')
137
161
return [
138
162
[ function ( ) {
139
163
//download
140
- return '<i class="glyphicon glyphicon-cloud -download text-primary"></i> ' + T ( 'download' )
164
+ return '<i class="fa fa -download text-primary"></i> ' + T ( 'download' )
141
165
} , function ( $itemScope , $event ) {
142
166
showDownloadDialog ( )
143
167
} , function ( ) {
0 commit comments