This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +16
-15
lines changed Expand file tree Collapse file tree 5 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -284,14 +284,14 @@ public function getelementinfoAction()
284
284
$ folder = $ this ->Folder ->load ($ id );
285
285
$ jsonContent = array_merge ($ jsonContent , $ folder ->toArray ());
286
286
$ jsonContent ['creation ' ] = $ this ->Component ->Date ->formatDate (strtotime ($ jsonContent ['date_update ' ]));
287
- if (!isset ($ this ->userSession ->Dao -> recentFolders ))
287
+ if (!isset ($ this ->userSession ->recentFolders ))
288
288
{
289
- $ this ->userSession ->Dao -> recentFolders = array ();
289
+ $ this ->userSession ->recentFolders = array ();
290
290
}
291
- array_push ($ this ->userSession ->Dao -> recentFolders , $ folder ->getKey ());
292
- if (count ($ this ->userSession ->Dao -> recentFolders ) > 5 )
291
+ array_push ($ this ->userSession ->recentFolders , $ folder ->getKey ());
292
+ if (count ($ this ->userSession ->recentFolders ) > 5 )
293
293
{
294
- array_shift ($ this ->userSession ->Dao -> recentFolders );
294
+ array_shift ($ this ->userSession ->recentFolders );
295
295
}
296
296
break ;
297
297
case 'item ' :
Original file line number Diff line number Diff line change @@ -131,14 +131,14 @@ public function viewAction()
131
131
$ header .= "</ul> " ;
132
132
}
133
133
134
- if (!isset ($ this ->userSession ->Dao -> recentFolders ))
134
+ if (!isset ($ this ->userSession ->recentFolders ))
135
135
{
136
- $ this ->userSession ->Dao -> recentFolders = array ();
136
+ $ this ->userSession ->recentFolders = array ();
137
137
}
138
- array_push ($ this ->userSession ->Dao -> recentFolders , $ folder ->getKey ());
139
- if (count ($ this ->userSession ->Dao -> recentFolders ) > 5 )
138
+ array_push ($ this ->userSession ->recentFolders , $ folder ->getKey ());
139
+ if (count ($ this ->userSession ->recentFolders ) > 5 )
140
140
{
141
- array_shift ($ this ->userSession ->Dao -> recentFolders );
141
+ array_shift ($ this ->userSession ->recentFolders );
142
142
}
143
143
144
144
$ this ->Folder ->incrementViewCount ($ folder );
Original file line number Diff line number Diff line change @@ -137,11 +137,11 @@ function viewAction()
137
137
else
138
138
{
139
139
$ parents = $ itemDao ->getFolders ();
140
- if (isset ($ this ->userSession ->Dao -> recentFolders ))
140
+ if (isset ($ this ->userSession ->recentFolders ))
141
141
{
142
142
foreach ($ parents as $ p )
143
143
{
144
- if (in_array ($ p ->getKey (), $ this ->userSession ->Dao -> recentFolders ))
144
+ if (in_array ($ p ->getKey (), $ this ->userSession ->recentFolders ))
145
145
{
146
146
$ currentFolder = $ p ;
147
147
break ;
Original file line number Diff line number Diff line change 284
284
{
285
285
html += '<img class="infoLogo" alt="Data Type" src="' + json . global . coreWebroot + '/public/images/icons/document-big.png" />' ;
286
286
}
287
+ console . log ( arrayElement [ 'name' ] ) ;
287
288
html += '<span class="infoTitle" >' + sliceFileName ( arrayElement [ 'name' ] , 27 ) + '</span>' ;
288
289
html += '<table>' ;
289
290
html += ' <tr>' ;
Original file line number Diff line number Diff line change 332
332
// var padding=parseInt(node.find('td:first').css('padding-left').slice(0,-2));
333
333
334
334
var j = 1 ;
335
-
335
+ var sliceValue = 42 - ( id . split ( '-' ) . length - 1 ) * 3 ;
336
336
337
337
$ . each ( elements [ 'folders' ] , function ( index , value ) {
338
338
if ( j > 70 )
345
345
return ;
346
346
}
347
347
html += "<tr id='" + id + "-" + i + "' deletable='" + value [ 'deletable' ] + "' privacy='" + value [ 'privacy_status' ] + "' class='parent child-of-" + id + "' ajax='" + value [ 'folder_id' ] + "'type='folder' policy='" + value [ 'policy' ] + "' element='" + value [ 'folder_id' ] + "'>" ;
348
- html += " <td><span class='folder'>" + sliceFileName ( value [ 'name' ] , 40 ) + "</span></td>" ;
348
+ html += " <td><span class='folder'>" + sliceFileName ( value [ 'name' ] , sliceValue ) + "</span></td>" ;
349
349
html += " <td>" + '<img class="folderLoading" element="' + value [ 'folder_id' ] + '" alt="" src="' + json . global . coreWebroot + '/public/images/icons/loading.gif"/>' + "</td>" ;
350
350
html += " <td>" + value [ 'date_update' ] + "</td>" ;
351
351
html += " <td><input type='checkbox' class='treeCheckbox' type='folder' element='" + value [ 'folder_id' ] + "'/></td>" ;
366
366
return ;
367
367
}
368
368
html += "<tr id='" + id + "-" + i + "' class='child-of-" + id + "' privacy='" + value [ 'privacy_status' ] + "' type='item' policy='" + value [ 'policy' ] + "' element='" + value [ 'item_id' ] + "'>" ;
369
- html += " <td><span class='file'>" + sliceFileName ( value [ 'name' ] , 40 ) + "</span></td>" ;
369
+ html += " <td><span class='file'>" + sliceFileName ( value [ 'name' ] , sliceValue ) + "</span></td>" ;
370
370
html += " <td>" + value [ 'size' ] + "</td>" ;
371
371
html += " <td>" + value [ 'date_update' ] + "</td>" ;
372
372
html += " <td><input type='checkbox' class='treeCheckbox' type='item' element='" + value [ 'item_id' ] + "'/></td>" ;
You can’t perform that action at this time.
0 commit comments