From 3bee1f8c37aff21c463a1c11fb3fd386b6770f50 Mon Sep 17 00:00:00 2001 From: catarak Date: Wed, 10 Aug 2016 15:03:05 -0400 Subject: [PATCH 1/2] fix bug with old p5.js version --- server/models/project.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/models/project.js b/server/models/project.js index 54e97adb..3ae5c195 100644 --- a/server/models/project.js +++ b/server/models/project.js @@ -15,7 +15,9 @@ const defaultHTML = ` - + + + From 5877b8293351ebaf6650d687c0008c116762a4df Mon Sep 17 00:00:00 2001 From: catarak Date: Wed, 10 Aug 2016 20:02:55 -0400 Subject: [PATCH 2/2] fix https://github.com/catarak/p5.js-web-editor/issues/35 --- client/modules/IDE/components/SidebarItem.js | 2 +- client/styles/components/_sidebar.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/modules/IDE/components/SidebarItem.js b/client/modules/IDE/components/SidebarItem.js index efec5e0a..5885b7a7 100644 --- a/client/modules/IDE/components/SidebarItem.js +++ b/client/modules/IDE/components/SidebarItem.js @@ -41,10 +41,10 @@ class SidebarItem extends React.Component { className={itemClass} onBlur={() => this.props.hideFileOptions(this.props.file.id)} tabIndex={this.props.fileIndex} + onClick={() => this.props.setSelectedFile(this.props.file.id)} > this.props.setSelectedFile(this.props.file.id)} >{this.props.file.name}