Skip to content

Commit

Permalink
Files: Fixed error when clicking on the Shared folder
Browse files Browse the repository at this point in the history
Calendar: No more timeout when calling calendar truncate.
  • Loading branch information
dehart committed Dec 16, 2024
1 parent bf0561a commit f1a52ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions www/modules/calendar/model/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ protected function afterSave($wasNew) {
* Remove all events
*/
public function truncate(){
// could take some time on large calendars.
set_time_limit(0);

$events = $this->events;

foreach($events as $event){
Expand Down
7 changes: 4 additions & 3 deletions www/modules/files/FileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ GO.files.FileBrowser = function(config){
this.treePanel.on('click', function(node) {
this.setFolderID(node.id, true);
this.cardPanel.show();

this.folderDetail.load(parseInt(node.id));
this.eastPanel.getLayout().setActiveItem(this.folderDetail);
if(node.id !== 'shared') {
this.folderDetail.load(parseInt(node.id));
this.eastPanel.getLayout().setActiveItem(this.folderDetail);
}
}, this);

this.treePanel.on('contextmenu', function(node, e){
Expand Down

0 comments on commit f1a52ea

Please sign in to comment.