;

						}
					});
				}});
			$('#delete').on('click', function() {
				if (project != "") {
					r2.cmd ("P-"+project, function () {
						updateProjectList ();
						alert ("Project "+project+" deleted");
						project = "";
					});
				} else {
					alert ("First select a project");
				}
			});
			$('#newfile').on('click', function(){
				var path =  $('#newfile_path').val();
				r2.cmd(":e file.project=;o--;o "+path,function() {
					window.location.assign("./" + layout);
				});
			});
			$('#submi