Commit ad6d8dd6 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'prakhar/purr-data-close_canvas' into emscripten

parents f1e4c9a4 c40ecf67
Pipeline #3687 canceled with stage
<div id="patch" class="patch">
<h6 class="text-center patch-filename" id="patch-filename"></h6>
<div class="d-flex justify-content-between align-items-center">
<h6 class="patch-filename" id="patch-filename" style="margin-right: auto; margin-left: auto;"></h6>
<button id="close-canvas" type="button" class="close" aria-label="Close">
<span class="p-2" aria-hidden="true">&times;</span>
</button>
</div>
<div class="rounded">
<!-- Patch menu -->
<ul class="patch-menu" id="patch-menu">
......
......@@ -522,11 +522,11 @@
// Add pd module to pd
//Clear Console
document.getElementById("clear").addEventListener("click",()=>{
document.getElementById('p1').innerHTML='';
})
// Clear Console
document.getElementById("clear").addEventListener("click", function() {
document.getElementById("p1").innerHTML="";
});
</script>
<!-- Pd Bundle -->
......
......@@ -2149,6 +2149,9 @@ function load_canvas_menu_actions(name, filename){
minit("file-close"+name, {
onclick: function() { pdgui.menu_close(name); }
});
minit("close-canvas"+name, {
onclick: function() { pdgui.menu_close(name); }
});
// Edit entries
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment